xhci: Free streams when they are still allocated on a set_interface call
authorHans de Goede <hdegoede@redhat.com>
Thu, 3 Oct 2013 22:29:45 +0000 (00:29 +0200)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 4 Mar 2014 23:38:00 +0000 (15:38 -0800)
commitdf6138347bcde316e4d4b24ae4d9d0296461c79a
tree3ab38fd041b124887801f5ba829aa06ecb0f80a9
parent153413032c6ea624fccc6732aba27a57688a7f91
xhci: Free streams when they are still allocated on a set_interface call

And warn about this, as that would be a driver bug.

Like wise drivers should ensure that streams are properly free-ed before a
device is reset. So lets warn about that too. This already causes warnings
in the form of:

[   96.982398] xhci_hcd 0000:01:00.0: WARN Can't disable streams for endpoint 0x81
, streams are already disabled!
[   96.982400] xhci_hcd 0000:01:00.0: WARN xhci_free_streams() called with non-streams endpoint

But it is better to also warn about the actual cause of this later warnings.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci.c