From 5775fe3ffe9fbdab3983b22ac9c0d3f994263b35 Mon Sep 17 00:00:00 2001 From: William Wu Date: Thu, 16 Apr 2020 11:22:49 +0800 Subject: [PATCH] usb: dwc2: use buffer dma for device mode The DWC2 driver auto detects the hardware and enable the gadget descriptor DMA if the DWC2 IP supports it. However, the gadget descriptor DMA has some unexpected compatibility issues, so we use buffer DMA instead of desc DMA. Change-Id: I1fed77f7d9bec1e0916b44d80813fb6248d461f0 Signed-off-by: William Wu --- drivers/usb/dwc2/params.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index 26f0d46a5150..a17f932ffce1 100644 --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c @@ -89,6 +89,7 @@ static void dwc2_set_rk_params(struct dwc2_hsotg *hsotg) p->ahbcfg = GAHBCFG_HBSTLEN_INCR16 << GAHBCFG_HBSTLEN_SHIFT; p->lpm = false; + p->g_dma_desc = false; p->power_down = 0; }