From: Jaehoon Chung Date: Mon, 23 Dec 2024 00:20:09 +0000 (+0900) Subject: usb: dwc2: gadget: set the quirk_ep_out_alinged_size as true X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4ac7e7c164a090bd3783cb0a5c9ce6d373de594;p=platform%2Fkernel%2Flinux-amlogic.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: Ic8f0d771cae41bcddc0b909c20576a2676b7f483 Signed-off-by: Jaehoon Chung [ytjeon: This commit is taken from linux-rpi/linux-artik7 repo] Signed-off-by: Yongtaek Jeon --- diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index e7bf9cc635be..93bcab4dde0c 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -5071,6 +5071,7 @@ int dwc2_gadget_init(struct dwc2_hsotg *hsotg) epnum, 0); } + hsotg->gadget.quirk_ep_out_aligned_size = true; dwc2_hsotg_dump(hsotg); return 0;