ATMEL USB: pass unknown FEATURE SET requests to gadget
Subsystems (2)
PATCH 1/1 ATMEL USB: pass unknown FEATURE SET requests to gadget
When using the dbgp gadget with the atmel usb controller, the following message is logged:
udc: ep0: Invalid setup request: 00.03 v0006 i0000 l0, halting endpoint...
That makes the gadget unusable with the atmel usba controller driver. Fix this by passing unknown request to the gadget driver.
Signed-off-by Sven Schnelle <[email protected]>
--- drivers/usb/gadget/atmel_usba_udc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/gadget/atmel_usba_udc.c +1 -1
@@ -1310,7 +1310,7 @@ static int handle_ep0_setup(struct usba_udc *udc, struct usba_ep *ep, }else if (feature_is_dev_remote_wakeup (crq)) { udc->devstatus |=1 <<USB_DEVICE_REMOTE_WAKEUP ; }else { - goto stall; + goto delegate; } }else if (crq->bRequestType ==USB_RECIP_ENDPOINT ) {struct usba_ep *target;
Signature · 1 line
1.7.6.3