diff options
author | David Cohen <david.a.cohen@linux.intel.com> | 2013-12-09 18:55:38 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-12-09 23:44:08 -0500 |
commit | a4b9d94b3dc8e65951c1819d37f213b3c6815adc (patch) | |
tree | 2b8ae42d68592e1ec7d0bbfecde7b28be501100b /drivers/usb/dwc3 | |
parent | 219580e64f035bb9018dbb08d340f90b0ac50f8c (diff) |
usb: dwc3: set gadget's quirk ep_out_align_size
DWC3 requires epout to have buffer size aligned to MaxPacketSize value.
This patch sets necessary quirk for it.
Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 5452c0fce360..b85ec110d6a0 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c | |||
@@ -2600,6 +2600,12 @@ int dwc3_gadget_init(struct dwc3 *dwc) | |||
2600 | dwc->gadget.name = "dwc3-gadget"; | 2600 | dwc->gadget.name = "dwc3-gadget"; |
2601 | 2601 | ||
2602 | /* | 2602 | /* |
2603 | * Per databook, DWC3 needs buffer size to be aligned to MaxPacketSize | ||
2604 | * on ep out. | ||
2605 | */ | ||
2606 | dwc->gadget.quirk_ep_out_aligned_size = true; | ||
2607 | |||
2608 | /* | ||
2603 | * REVISIT: Here we should clear all pending IRQs to be | 2609 | * REVISIT: Here we should clear all pending IRQs to be |
2604 | * sure we're starting from a well known location. | 2610 | * sure we're starting from a well known location. |
2605 | */ | 2611 | */ |