usb: dwc2: gadget: set the quirk_ep_out_alinged_size as true 48/308448/2
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 22 Oct 2018 04:44:11 +0000 (13:44 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 26 Mar 2024 00:22:06 +0000 (00:22 +0000)
Set the quirk_ep_out_aligned_size as true.
This patch is fixed about occurring kernel panic after failed memory
allocation.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
[dwoo08.lee: bring commit from linux-artik7 of public tizen repository]
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
(cherry picked from commit 377d8707f528fe5e318debd4e282db6ae8713244)

Change-Id: Ia058acdaac0b9d39554e9eb1a69be57255961186

drivers/usb/dwc2/gadget.c

index dc999fd..cb89afc 100644 (file)
@@ -5060,6 +5060,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)