usb: dwc2: gadget: set the quirk_ep_out_alinged_size as true 92/316992/3
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 23 Dec 2024 00:20:09 +0000 (09:20 +0900)
committerYongtaek Jeon <ytjeon@samsung.com>
Mon, 23 Dec 2024 01:42:52 +0000 (10:42 +0900)
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 <jh80.chung@samsung.com>
[ytjeon: This commit is taken from linux-rpi/linux-artik7 repo]
Signed-off-by: Yongtaek Jeon <ytjeon@samsung.com>
drivers/usb/dwc2/gadget.c

index e7bf9cc635be6f8a6d58bd3a49343ff0deb5307a..93bcab4dde0ccfb36b329e6a5b3c3e57261c46ba 100644 (file)
@@ -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;