xhci: Treat not finding the event_seg on COMP_STOP the same as COMP_STOP_INVAL
authorHans de Goede <hdegoede@redhat.com>
Tue, 19 Aug 2014 12:17:56 +0000 (15:17 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 13 Sep 2014 22:41:46 +0000 (23:41 +0100)
commit498f060a17f9e4a6b655fdbdda6036f560bee4ac
treef44fb2abab33b57640ebb5dcc14cc18b9c5f8aec
parent1bc6485405f05ff9912055c67b43fc86b183eec3
xhci: Treat not finding the event_seg on COMP_STOP the same as COMP_STOP_INVAL

commit 9a54886342e227433aebc9d374f8ae268a836475 upstream.

When using a Renesas uPD720231 chipset usb-3 uas to sata bridge with a 120G
Crucial M500 ssd, model string: Crucial_ CT120M500SSD1, together with a
the integrated Intel xhci controller on a Haswell laptop:

00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC [8086:9c31] (rev 04)

The following error gets logged to dmesg:

xhci error: Transfer event TRB DMA ptr not part of current TD

Treating COMP_STOP the same as COMP_STOP_INVAL when no event_seg gets found
fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/host/xhci-ring.c