Commit 6118d064 authored by Stefan Wahren's avatar Stefan Wahren Committed by Felipe Balbi

usb: dwc2: fix default value for DMA support

The current defaults for DMA results on a non-DMA platform in a unnecessary
error message:

  Invalid value 0 for param gadget-dma

So fix this by using dma_capable as default value.

Fixes: 9962b62f ("usb: dwc2: Deprecate g-use-dma binding")
Acked-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent de02238d
...@@ -1088,7 +1088,7 @@ static void dwc2_set_gadget_dma(struct dwc2_hsotg *hsotg) ...@@ -1088,7 +1088,7 @@ static void dwc2_set_gadget_dma(struct dwc2_hsotg *hsotg)
/* Buffer DMA */ /* Buffer DMA */
dwc2_set_param_bool(hsotg, &p->g_dma, dwc2_set_param_bool(hsotg, &p->g_dma,
false, "gadget-dma", false, "gadget-dma",
true, false, dma_capable, false,
dma_capable); dma_capable);
/* DMA Descriptor */ /* DMA Descriptor */
...@@ -1118,7 +1118,7 @@ static void dwc2_set_parameters(struct dwc2_hsotg *hsotg, ...@@ -1118,7 +1118,7 @@ static void dwc2_set_parameters(struct dwc2_hsotg *hsotg,
dwc2_set_param_bool(hsotg, &p->host_dma, dwc2_set_param_bool(hsotg, &p->host_dma,
false, "host-dma", false, "host-dma",
true, false, dma_capable, false,
dma_capable); dma_capable);
dwc2_set_param_host_rx_fifo_size(hsotg, dwc2_set_param_host_rx_fifo_size(hsotg,
params->host_rx_fifo_size); params->host_rx_fifo_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment