usb: dwc2: gadget: set the quirk_ep_out_alinged_size as true
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 22 Oct 2018 04:44:11 +0000 (13:44 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 2 Apr 2020 04:09:12 +0000 (13:09 +0900)
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 <jh80.chung@samsung.com>
[dwoo08.lee: bring commit from linux-artik7 of public tizen repository]
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
drivers/usb/dwc2/gadget.c

index aa5d7de..251f749 100644 (file)
@@ -4760,6 +4760,8 @@ int dwc2_gadget_init(struct dwc2_hsotg *hsotg)
                                          epnum, 0);
        }
 
+       hsotg->gadget.quirk_ep_out_aligned_size = true;
+
        ret = usb_add_gadget_udc(dev, &hsotg->gadget);
        if (ret) {
                dwc2_hsotg_ep_free_request(&hsotg->eps_out[0]->ep,