aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/platform.c
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@altera.com>2014-05-07 08:30:33 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-27 15:42:41 -0700
commit8b3e233e8121d241a93f27a093c1440673d3a7ff (patch)
treeb7215079f4eb4d9e0b49d442d211887abc269b32 /drivers/usb/dwc2/platform.c
parentDocumentation: dt-bindings: update xhci-platform DT binding (diff)
downloadlinux-dev-8b3e233e8121d241a93f27a093c1440673d3a7ff.tar.xz
linux-dev-8b3e233e8121d241a93f27a093c1440673d3a7ff.zip
usb: dwc2: Disable descriptor dma mode by default
Even though the IP supports Descriptor DMA mode, it does not support SPLIT transactions in this mode. So the driver, in its currently form, will not support LS/FS devices when connected to a HS Hub if Descriptor DMA mode is enabled. So we should just default to disable descriptor dma mode. Signed-off-by: Dinh Nguyen <dinguyen@altera.com> Acked-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/usb/dwc2/platform.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
index eaba547ce26b..a10e7a353576 100644
--- a/drivers/usb/dwc2/platform.c
+++ b/drivers/usb/dwc2/platform.c
@@ -134,6 +134,12 @@ static int dwc2_driver_probe(struct platform_device *dev)
/* Default all params to autodetect */
dwc2_set_all_params(&defparams, -1);
params = &defparams;
+
+ /*
+ * Disable descriptor dma mode by default as the HW can support
+ * it, but does not support it for SPLIT transactions.
+ */
+ defparams.dma_desc_enable = 0;
}
hsotg = devm_kzalloc(&dev->dev, sizeof(*hsotg), GFP_KERNEL);