]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc2: disable erroneous overcurrent condition
authorDinh Nguyen <dinguyen@opensource.altera.com>
Sat, 5 Mar 2016 00:57:04 +0000 (18:57 -0600)
committerMarek Vasut <marex@denx.de>
Sat, 5 Mar 2016 01:21:36 +0000 (02:21 +0100)
commitb5ab663a6956e47180706b897bc9567335257d58
tree6771f5cec4271c7b58375fea745a85bf081771b5
parent8038f6d2881d58f5322109a2f5ec2de5aaa6fc30
usb: dwc2: disable erroneous overcurrent condition

For the case where an external VBUS is used, we should enable the external
VBUS comparator in the driver. This would prevent an unnecessary overcurrent
error which would then disable the host port.

The overcurrent condition was happening on the SoCFPGA Cyclone5 devkit, thus
USB was not working on the devkit. This patch fixes that problem.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
drivers/usb/host/dwc2.c
drivers/usb/host/dwc2.h