usb: dwc3: add a power supply for current control
authorRay Chi <raychi@google.com>
Mon, 22 Feb 2021 11:51:48 +0000 (19:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:37:14 +0000 (09:37 +0100)
commit6f0764b5adea18d70c3fab32d5f940678bcbd865
tree9d43115af749f47e1e09de0fa654897fc073fb32
parenta38fd8748464831584a19438cbb3082b5a2dab15
usb: dwc3: add a power supply for current control

Currently, VBUS draw callback does no action when the
generic PHYs are used. This patch adds an additional
path to control charging current through power supply
interface.

Signed-off-by: Ray Chi <raychi@google.com>
Link: https://lore.kernel.org/r/20210222115149.3606776-2-raychi@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h