sunxi: musb: Power off OTG port VBUS when disabled
authorChen-Yu Tsai <wens@csie.org>
Wed, 7 Sep 2016 06:25:21 +0000 (14:25 +0800)
committerHans de Goede <hdegoede@redhat.com>
Sat, 17 Sep 2016 12:37:40 +0000 (14:37 +0200)
commit57075a472a5c2b9a7c498a9dc2f2cfcc1e898ec2
treef917bb4118112422e50f699a5ff121e612c39881
parent253e62bf4b118d38a9e4a396b68fac61dcae7bbc
sunxi: musb: Power off OTG port VBUS when disabled

The Linux kernel musb driver expects VBUS to be off while initializing
musb. Having it on results in a repeating string of warnings, followed
by an unusable peripheral. The peripheral is only usable after
physically removing the OTG adapter, letting musb reset its state.

This partially reverts commit c9f8947e6604 ("sunxi: usb-phy: Never
power off the usb ports")

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/include/asm/arch-sunxi/usb_phy.h
arch/arm/mach-sunxi/usb_phy.c
drivers/usb/musb-new/sunxi.c