From d67f2d749f80a4784700ba57fd5711e2666ae517 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 on Rockchip SoCs 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 Signed-off-by: Frank Wang --- 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 08edcdb9b33e..195cca1fe3c6 100644 --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c @@ -91,6 +91,7 @@ static void dwc2_set_rk_params(struct dwc2_hsotg *hsotg) GAHBCFG_HBSTLEN_SHIFT; p->power_down = DWC2_POWER_DOWN_PARAM_NONE; p->lpm = false; + p->g_dma_desc = false; } static void dwc2_set_ltq_params(struct dwc2_hsotg *hsotg)