OSDN Git Service

usb: common: usb-conn-gpio: Make VBUS supply optional
authorThierry Reding <treding@nvidia.com>
Thu, 6 Aug 2020 16:02:47 +0000 (18:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Aug 2020 10:13:44 +0000 (12:13 +0200)
commit4ddf1ac79e5f082451cd549283d2eb7559ab6ca9
tree5bd8d5cc954f61d3193c8c422aaadccb5a7d5efe
parent4d671957d45346decb1a9d488921cf90c19e0d0f
usb: common: usb-conn-gpio: Make VBUS supply optional

If the connector is the child of a USB port and that USB port already
has a VBUS supply attached to it, it would be redundant to require the
connector to have a VBUS supply. In this case, allow the VBUS supply to
be optional.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20200806160248.3936771-1-thierry.reding@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/usb-conn-gpio.c