summaryrefslogtreecommitdiff
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2018-02-09 10:24:36 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commita33af7dbcf1b8a751eecf23a117c994621b301a8 (patch)
tree45c3da581ac9b3cd5bdf33e78aa7b071add6effc /drivers/usb/host
parenta7d83e011cee3b6f55810566dafb0108ad323424 (diff)
MLK-17380-5 usb: host: xhci: do not return error status for URB
Current XHCI implementation does not consider completion interrupt for SETUP packet standalone, so it will show warning message and return error status for URB. In fact, it can support it. In this commit, we delete warning message and set status as zero for URB. Support completion interrupt for SETUP packet is needed for EH SINGLE_STEP_SET_FEATURE Test. Acked-by: Jun Li <jun.li@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/xhci-ring.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index f146ad772b11..806816401f59 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -1968,9 +1968,7 @@ static int process_ctrl_td(struct xhci_hcd *xhci, struct xhci_td *td,
switch (trb_comp_code) {
case COMP_SUCCESS:
if (event_trb == ep_ring->dequeue) {
- xhci_warn(xhci, "WARN: Success on ctrl setup TRB "
- "without IOC set??\n");
- *status = -ESHUTDOWN;
+ *status = 0;
} else if (event_trb != td->last_trb) {
xhci_warn(xhci, "WARN: Success on ctrl data TRB "
"without IOC set??\n");