From: Jaehoon Chung Date: Mon, 22 Oct 2018 04:44:11 +0000 (+0900) Subject: usb: dwc2: gadget: set the quirk_ep_out_alinged_size as true X-Git-Tag: accepted/tizen/unified/20230118.172025~182 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4eff0a7321d5554a578fa8eb5db8b29524c1a792;p=platform%2Fkernel%2Flinux-rpi.git usb: dwc2: gadget: set the quirk_ep_out_alinged_size as true Set the quirk_ep_out_aligned_size as true. This patch is fixed about occurring kernel panic after failed memory allocation. Change-Id: Iafb6ccaa6f7d7dac4eb0593291166ab13cd8256d Signed-off-by: Jaehoon Chung [dwoo08.lee: bring commit from linux-artik7 of public tizen repository] Signed-off-by: Dongwoo Lee --- diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 8599837..86ea50a 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -5059,6 +5059,7 @@ int dwc2_gadget_init(struct dwc2_hsotg *hsotg) epnum, 0); } + hsotg->gadget.quirk_ep_out_aligned_size = true; dwc2_hsotg_dump(hsotg); #if IS_ENABLED(CONFIG_EXTCON)