diff options
author | Felipe Balbi <balbi@ti.com> | 2011-11-29 13:11:21 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-12-12 11:48:47 +0200 |
commit | c90bfaece97c18d1ad66b9d4c717b1cb55a647ad (patch) | |
tree | cf0fcc80a8c65eed0e992679696061bd633d6b64 /drivers/usb/dwc3/core.h | |
parent | e2617796053437df586c53e462076f74bcf268b4 (diff) | |
download | talos-op-linux-c90bfaece97c18d1ad66b9d4c717b1cb55a647ad.tar.gz talos-op-linux-c90bfaece97c18d1ad66b9d4c717b1cb55a647ad.zip |
usb: dwc3: gadget: fix stream enable bit
ep->max_streams is a mere hint to the gadget
driver that 'ep' supports stream handling. Using
that as a decision variable for enabling streams
was my worst brain-fart to date.
Instead, we should check from the Superspeed
Endpoint Companion Descriptor if the endpoint
has requested streams. For that we need a little
re-factoring but it is now correct.
Debugged-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r-- | drivers/usb/dwc3/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index da523f5648a5..9e57f8e9bf17 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -348,6 +348,7 @@ struct dwc3_ep { u32 free_slot; u32 busy_slot; const struct usb_endpoint_descriptor *desc; + const struct usb_ss_ep_comp_descriptor *comp_desc; struct dwc3 *dwc; unsigned flags; |