]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:49:06 +0000 (13:49 +0200)
commit27a58fcb9c6216d5c5a52a88dd3529e1dfc80cb4
treeac633045fe988793da09d6064f9d67254fb156fd
parentdd129f61158c76f422d2ae93772e7947c109570c
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