]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit38a5f10efd3b054ecd83b96e45cddefd38dd4928
tree4872b13bb49c7f769bc58819aece8a94229dd2b9
parent2f96622b5fb7a288b3bb44dd11fb05a883d5ec99
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