* [PATCH] ATMEL USB: pass unknown FEATURE SET requests to gadget
@ 2011-10-28 9:44 Sven Schnelle
0 siblings, 0 replies; only message in thread
From: Sven Schnelle @ 2011-10-28 9:44 UTC (permalink / raw)
To: linux-arm-kernel
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 <svens@stackframe.org>
---
drivers/usb/gadget/atmel_usba_udc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c
index 271a9d8..49480493 100644
--- a/drivers/usb/gadget/atmel_usba_udc.c
+++ b/drivers/usb/gadget/atmel_usba_udc.c
@@ -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;
--
1.7.6.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-28 9:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28 9:44 [PATCH] ATMEL USB: pass unknown FEATURE SET requests to gadget Sven Schnelle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.