Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…oot-sunxi

This fixes two regressions: eMMC operation on boards with WiFi (so using
three MMC devices), and a repeated wrong error message in USB gadget
mode (fastboot, ums).
  • Loading branch information
trini committed Dec 9, 2021
2 parents 558002a + fbd9207 commit 1530ad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion arch/arm/dts/sunxi-u-boot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/ {
aliases {
mmc0 = &mmc0;
#if CONFIG_MMC_SUNXI_EXTRA_SLOT == 2
#if CONFIG_MMC_SUNXI_SLOT_EXTRA == 2
mmc1 = &mmc2;
#endif
};
Expand Down
8 changes: 1 addition & 7 deletions board/sunxi/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,13 +698,7 @@ int g_dnl_board_usb_cable_connected(void)
return ret;
}

ret = sun4i_usb_phy_vbus_detect(&phy);
if (ret == 1) {
pr_err("A charger is plugged into the OTG\n");
return -ENODEV;
}

return ret;
return sun4i_usb_phy_vbus_detect(&phy);
}
#endif

Expand Down

0 comments on commit 1530ad5

Please sign in to comment.