USB: EHCI: don't refcount iso_stream structures
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 11 Jul 2012 15:22:39 +0000 (11:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 23:54:26 +0000 (16:54 -0700)
commit8c5bf7be56f1a8aecc1f802f132d53f556a9bc45
treed3b22a284f3f81b804bf9898928f866cfb8a45cd
parent55934eb3b9fa52eb53b9d7342267fc73c38206aa
USB: EHCI: don't refcount iso_stream structures

This patch (as1580) makes ehci_iso_stream structures behave more like
QHs, in that they will remain allocated until their isochronous
endpoint is disabled.  This will come in useful in the future, when
periodic bandwidth gets allocated as an altsetting is installed rather
than on-the-fly.

For now, the change to the ehci_iso_stream lifetimes means that each
structure is always deallocated at exactly one spot in
ehci_endpoint_disable() and never used again.  As a result, it is no
longer necessary to use reference counting on these things, and the
patch removes it.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-sched.c
drivers/usb/host/ehci.h