diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2018-10-22 13:44:11 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2019-01-29 11:25:39 +0900 |
commit | 8899802798809d394e6350a6b42f3b392e5defdf (patch) | |
tree | 6db200eaaa70c6f3303cd6be21156203db687b2b | |
parent | 708be2c8f68e83c506de96e6063c27222d17be70 (diff) | |
download | linux-artik7-8899802798809d394e6350a6b42f3b392e5defdf.tar.gz linux-artik7-8899802798809d394e6350a6b42f3b392e5defdf.tar.bz2 linux-artik7-8899802798809d394e6350a6b42f3b392e5defdf.zip |
usb: dwc2: gadget: set the quirk_ep_out_alinged_size as true
Set the quirk_ep_out_aligned_size as ture.
This patch is fixed about occurring kernel panic after failed memory allocation.
Change-Id: Iafb6ccaa6f7d7dac4eb0593291166ab13cd8256d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
-rw-r--r-- | drivers/usb/dwc2/gadget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index bb26bccdc786..1da1792a284f 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -3763,6 +3763,8 @@ int dwc2_gadget_init(struct dwc2_hsotg *hsotg, int irq) 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, |