]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: st: Fix USB_DR_MODE_PERIPHERAL configuration.
authorPeter Griffin <peter.griffin@linaro.org>
Wed, 11 May 2016 16:33:11 +0000 (17:33 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 31 May 2016 08:24:31 +0000 (11:24 +0300)
commite57770bad0493beed20b7deeaffeb0a27b880afa
tree30ae3b3d53aa79be4c85aa12978d1c2484c4c981
parent2cdcb1bc0809b02a3bfad122b5b47a4d150b506f
usb: dwc3: st: Fix USB_DR_MODE_PERIPHERAL configuration.

Set USB3_FORCE_VBUSVALID when configured for USB_DR_MODE_PERIPHERAL
mode, as it is required to have a working setup.

This worked on the internal driver by relying on the reset
value of the syscfg register as the bits aren't explicity cleared
and set like the upstream driver.

Also add a comment about what setting this bit means.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/dwc3-st.c