Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4b9d94b authored by David Cohen's avatar David Cohen Committed by Felipe Balbi
Browse files

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: default avatarDavid Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 219580e6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2599,6 +2599,12 @@ int dwc3_gadget_init(struct dwc3 *dwc)
	dwc->gadget.sg_supported	= true;
	dwc->gadget.name		= "dwc3-gadget";

	/*
	 * Per databook, DWC3 needs buffer size to be aligned to MaxPacketSize
	 * on ep out.
	 */
	dwc->gadget.quirk_ep_out_aligned_size = true;

	/*
	 * REVISIT: Here we should clear all pending IRQs to be
	 * sure we're starting from a well known location.