]> git.ipfire.org Git - people/ms/u-boot.git/commit
sunxi: musb: Stop treating not having a vbus-det gpio as an error
authorHans de Goede <hdegoede@redhat.com>
Thu, 18 Jun 2015 16:21:33 +0000 (18:21 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 25 Jul 2015 09:22:55 +0000 (11:22 +0200)
commit9ecce9707b05189a762fc87c8483408d175774df
tree1d2b0be22f89fc26397d157822764f94547b944d
parent56a2085410d507c00d4bc374f9af10816638df24
sunxi: musb: Stop treating not having a vbus-det gpio as an error

On some boards the otg is wired up in host-only mode in this case we
have no vbus-det gpio.

Stop logging an error from sunxi_usb_phy_vbus_detect() in this case, and
stop treating sunxi_usb_phy_vbus_detect() returning a negative errno, as
if a charger is plugged into the otg port.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/cpu/armv7/sunxi/usb_phy.c
drivers/usb/musb-new/sunxi.c