[PATCH v3 0/4] usb: phy: generic: Support enabling/disabling VBUS

From: Sean Anderson
Date: Tue Jan 23 2024 - 17:52:10 EST


The generic USB phy has had VBUS-related code for a long time, but it
has always been broken, since the regulator was never gotten from the
device tree. However, the support itself seems not very useful, since
e.g. usb_phy_vbus_on/off has no users and usb_phy_set_power is only
used by gadgets to make sure they don't draw too much current. Instead,
use the VBUS regulator to implement otg_set_vbus, which is called from
several drivers. This results in a change in semantics of VBUS, but
since support was always broken I don't think this will have any affect.

This series is pretty unpopular... I only got minor feedback on one
patch last time. I'll try to remember to ping when the merge window
opens up.

Changes in v3:
- Update description as suggested by Linus

Changes in v2:
- Fix dt_binding_check errors

Sean Anderson (4):
dt-bindings: usb: usb-nop-xceiv: Repurpose vbus-regulator
usb: phy: generic: Get the vbus supply
usb: phy: generic: Implement otg->set_vbus
usb: phy: generic: Disable vbus on removal

.../bindings/usb/usb-nop-xceiv.yaml | 11 ++--
drivers/usb/phy/phy-generic.c | 55 +++++++++----------
2 files changed, 33 insertions(+), 33 deletions(-)

--
2.35.1.1320.gc452695387.dirty