usb: dwc2: force to host mode if not support HNP/SRP
authorMeng Dongyang <daniel.meng@rock-chips.com>
Thu, 8 Jun 2017 07:34:20 +0000 (15:34 +0800)
committerMarek Vasut <marex@denx.de>
Sat, 17 Jun 2017 15:59:03 +0000 (17:59 +0200)
commitc65a34942e292e1f74af798c6ccbef17a072e238
tree4872b13bb49c7f769bc58819aece8a94229dd2b9
parentb9f7d8817424bb328d5eac9b16196a1189b8b6f5
usb: dwc2: force to host mode if not support HNP/SRP

In current code, after running the command of "usb start", the controller
will keep in otg mode and can't switch to host mode if not support
SNP/SRP capability. So add the property of "hnp-srp-disable" in the DTS
to config the contrller work in force mode of host.

Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
drivers/usb/host/dwc2.c