diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-16 14:43:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-17 11:51:18 +0200 |
commit | b4a48f48ee7691af9aa907ad3d388f153647fb81 (patch) | |
tree | 666e31b19788b8388efb758a17cf1b595409aafc /include/usb | |
parent | 496576955a3889ad784ada8467de3c842338fc09 (diff) | |
download | barebox-b4a48f48ee7691af9aa907ad3d388f153647fb81.tar.gz barebox-b4a48f48ee7691af9aa907ad3d388f153647fb81.tar.xz |
usb: gadget: composite: conditionally dequeue setup requests
This is an adoption of Kernel commit a7c12eaf2 ("usb: gadget: composite:
conditionally dequeue os_desc and setup requests"). Basically we only
want to dequeue ep0 requests when they are actually queued. Drivers like
dwc3 warn when unqueued requests are being tried to unqueued.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb')
-rw-r--r-- | include/usb/composite.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb/composite.h b/include/usb/composite.h index f30568a54f..ec9abe7447 100644 --- a/include/usb/composite.h +++ b/include/usb/composite.h @@ -395,6 +395,9 @@ struct usb_composite_dev { spinlock_t lock; int in_reset_config; + + /* public: */ + unsigned int setup_pending:1; }; extern int usb_string_id(struct usb_composite_dev *c); |