Hans de Goede 9c745995ae usb-xhci: Handle COMP_TX_ERR for isoc tds
While testing unplugging an UVC HD webcam with usb-redirection (so through
usbdevfs), my userspace usb-redir code was getting a value of -1 in
iso_frame_desc[n].status, which according to Documentation/usb/error-codes.txt
is not a valid value.

The source of this -1 is the default case in xhci-ring.c:process_isoc_td()
adding a kprintf there showed the value of trb_comp_code to be COMP_TX_ERR
in this case, so this patch adds handling for that completion code to
process_isoc_td().

This was observed and tested with the following xhci controller:
1033:0194 NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)

Note: I also wonder if setting frame->status to -1 (-EPERM) is the best we can
do, but since I cannot come up with anything better I've left that as is.

This patch should be backported to kernels as old as 2.6.36, which contain the
commit 04e51901dd44f40a5a385ced897f6bca87d5f40a "USB: xHCI: Isochronous
transfer implementation".

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
2012-05-03 13:11:12 -07:00
..
2012-04-22 15:25:26 -07:00
2011-12-08 09:38:53 -08:00
2012-05-01 21:33:35 -07:00
2011-11-26 19:46:48 -08:00
2011-10-18 13:51:34 -07:00
2012-04-18 13:57:26 -07:00
2011-03-31 11:26:23 -03:00
2012-02-13 14:32:34 -08:00
2011-03-31 11:26:23 -03:00
2012-05-01 13:36:18 -04:00
2012-04-18 13:43:30 -07:00
2011-09-18 01:39:36 -07:00
2012-05-01 21:33:37 -07:00
2011-11-18 10:51:00 -08:00
2012-05-01 13:36:18 -04:00
2011-09-18 01:39:36 -07:00
2012-04-27 11:24:43 -07:00
2011-11-18 10:51:00 -08:00
2012-04-27 11:24:44 -07:00
2011-11-18 10:51:00 -08:00
2012-04-27 11:24:45 -07:00