]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sunxi: axp221: Use vbus-available rather then vbus-usable for vbus-detect
authorHans de Goede <hdegoede@redhat.com>
Fri, 27 Mar 2015 20:40:20 +0000 (21:40 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:14 +0000 (21:47 +0200)
commit733c7ba7b6037d89459a7e4094cf6843f3018634
tree67597ea050a8574d4c7335d6a6a0f1013b179a44
parent9701632b3e3396ac7f49279856c20a4cf0a4f97b
sunxi: axp221: Use vbus-available rather then vbus-usable for vbus-detect

vbus-usable may not get set if power is provided through both the power barrel
connector and external 5v is also present on the otg connector, at least on
boards where vbus is also controlled through the axp221-pmic.

One way to reproduce this is to bootup an Ippo-q8h board with a usb-host
cable plugged into the otg (so that it will get powered), then unplug the
usb-host cable and plug in a charger, and then do "reset" on the u-boot
console, vbus-usable will then report 0, leading to uboot trying to provide
power to the otg port even though external 5v is present, this commit fixes
this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/power/axp221.c