usb: common: usb-conn-gpio: Make VBUS supply completely optional
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Wed, 9 Mar 2022 09:38:42 +0000 (10:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Mar 2022 17:22:15 +0000 (18:22 +0100)
commitd790a9db918f7c2356ea2f775cd868551218fc07
tree86c3f9ac1ba754126aa883dd244361dac87986e3
parentb07cabb8361dc692522538205552b1b9dab134be
usb: common: usb-conn-gpio: Make VBUS supply completely optional

It makes sense that if the USB connector is a child of an USB port
providing VBUS supply, there is no need to do it again.
But this does not handle the case where VBUS is controlled by PWR from
USB host controller, without any regulator at all.
Support this by making VBUS pure optional.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20220309093842.113260-1-alexander.stein@ew.tq-group.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/usb-conn-gpio.c