]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
musb: sunxi: Allow host-side USB with external VBUS
authorSamuel Holland <samuel@sholland.org>
Fri, 15 Jul 2022 03:34:54 +0000 (22:34 -0500)
committerMarek Vasut <marex@denx.de>
Fri, 15 Jul 2022 12:10:39 +0000 (14:10 +0200)
Now that the PHY driver will not try to drive VBUS if it is already
driven by an external supply, there is no need to check the VBUS voltage
before powering on the PHY.

Signed-off-by: Samuel Holland <samuel@sholland.org>
drivers/usb/musb-new/sunxi.c

index 7e62e3fe6ea87fa01af5759e9c43d4fd49c3c170..dc4cfc2194b4920a5b99cfbb55d19324a5839de0 100644 (file)
@@ -241,12 +241,6 @@ static int sunxi_musb_enable(struct musb *musb)
        musb_writeb(musb->mregs, USBC_REG_o_VEND0, 0);
 
        if (is_host_enabled(musb)) {
-               ret = sun4i_usb_phy_vbus_detect(&glue->phy);
-               if (ret == 1) {
-                       printf("A charger is plugged into the OTG: ");
-                       return -ENODEV;
-               }
-
                ret = sun4i_usb_phy_id_detect(&glue->phy);
                if (ret == 1) {
                        printf("No host cable detected: ");