Re: [PATCH 2/3] phy: sun4i-usb: Refactor VBUS detection to match Linux

2021-10-25 Thread Andre Przywara
On Sun, 12 Sep 2021 09:22:41 -0500 Samuel Holland wrote: Hi, > 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

[PATCH 2/3] phy: sun4i-usb: Refactor VBUS detection to match Linux

2021-09-12 Thread Samuel Holland
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