Skip to contentSkip to conversation

ATMEL USB: pass unknown FEATURE SET requests to gadget

PATCH New Sven Schnelle 1 participant 1 message Oct 28, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/usb/gadget/atmel_usba_udc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/gadget/atmel_usba_udc.c +1 -1
index 271a9d8..49480493 100644
@@ -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