UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit657382feecd9b8deb7af35968f76fc1a756b3924
tree6edccc4d7b427852cc8b35144ff19bce4d6f1ed0
parent68213a9bacf6f17919aca6fa46a4ca53def56e72
UPSTREAM: 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.

Change-Id: Ibd3a18b3a85b53dcf8471a1231b502185641c010
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 27a0faafdca53bda21ed340ca8f8960696dda049)
drivers/usb/dwc3/dwc3-st.c