OSDN Git Service

usb: dwc2: disable erroneous overcurrent condition
authorDinh Nguyen <dinguyen@kernel.org>
Mon, 16 Oct 2017 13:57:18 +0000 (08:57 -0500)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 19 Oct 2017 07:38:14 +0000 (10:38 +0300)
commitb11633c42a766cb3c824e3583163b9adf67501fe
tree1e4aeec9d408e929c66a4f3cfde977dd23e76980
parent32428aa22d08a1be660b571a0f71880e5a9dd926
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.

This patch uses the standard 'disable-over-current' binding to allow of the
option of disabling the over-current condition.

Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/hcd.c
drivers/usb/dwc2/params.c