]> git.karo-electronics.de Git - linux-beck.git/commit
usb: dwc2: gadget: fix default value for gadget-dma-desc
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 20 Nov 2016 21:26:05 +0000 (21:26 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 2 Jan 2017 08:55:28 +0000 (10:55 +0200)
commitefc95b2ca42424de222119a3a260624f3a050f8e
treecaa81e8c35d86b29e7e7fb9a2ec32bcba8b95a97
parent6118d0647b10eaca06b278dee2022602d8f2f07a
usb: dwc2: gadget: fix default value for gadget-dma-desc

The current default for gadget DMA descriptor results on bcm2835 in a
unnecessary error message:

  Invalid value 1 for param gadget-dma-desc

So fix this by using hw->dma_desc_enable as default value.

Fixes: dec4b55677e ("usb: dwc2: gadget: Add descriptor DMA parameter")
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/params.c