u-boot/drivers/phy/allwinner
Samuel Holland 1da7b88cad phy: sun4i-usb: Refactor VBUS detection to match Linux
The Linux driver checks the VBUS detection GPIO first; then VBUS power
supply; then finally assumes VBUS is present. When adding VBUS power
supply support, we want to match that order, so we get the same behavior
in case both a GPIO and a power supply are provided in the device tree.

So refactor the function a bit to remove the early return, and use the
same "assume VBUS is present" final fallback.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2021-10-25 14:49:16 +01:00
..
Kconfig phy: sun50i-usb3: Add a driver for the H6 USB3 PHY 2021-09-22 21:29:56 +02:00
Makefile phy: sun50i-usb3: Add a driver for the H6 USB3 PHY 2021-09-22 21:29:56 +02:00
phy-sun4i-usb.c phy: sun4i-usb: Refactor VBUS detection to match Linux 2021-10-25 14:49:16 +01:00
phy-sun50i-usb3.c phy: sun50i-usb3: Add a driver for the H6 USB3 PHY 2021-09-22 21:29:56 +02:00