tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

patch: xhci: return error if configure ep fails



Hello,

This patch makes xhci_open return error code
if xhci_configure_endpoint fails, then, makes umass
comfortable if CONFIGURE_EP fails with TRB_ERROR_PARAMETER
when 3.0 usb drive is connected and umass tries to open
bulk-in/out endpoints.
I have no idea why configure endpoint fails on only my
uPD720200, even though it works on Etron and BayTrail.


--- xhci.c.orig 2014-08-12 23:29:37.000000000 +0900
+++ xhci.c      2014-08-15 08:14:31.000000000 +0900
@@ -1130,7 +1371,7 @@ xhci_open(usbd_pipe_handle pipe)
        }
if (ed->bEndpointAddress != USB_CONTROL_ENDPOINT)
-               xhci_configure_endpoint(pipe);
+               return xhci_configure_endpoint(pipe);
return USBD_NORMAL_COMPLETION;
 }


--
t-hash


Home | Main Index | Thread Index | Old Index