Message ID | 1515168960-18960-8-git-send-email-jun.nie@linaro.org |
---|---|
State | New |
Headers | show |
Series | [[PATCH,v2] 7/8] sunxi: usb_phy: setup USB PHY passby for USB0 on H3/H5/A64 | expand |
diff --git a/arch/arm/mach-sunxi/usb_phy.c b/arch/arm/mach-sunxi/usb_phy.c index bcf5f15..4ae0a77 100644 --- a/arch/arm/mach-sunxi/usb_phy.c +++ b/arch/arm/mach-sunxi/usb_phy.c @@ -245,7 +245,12 @@ void sunxi_usb_phy_init(int index) sunxi_usb_phy_config(phy); - if (phy->id != 0) + /* + * Later SoCs such as the H3, H5, A64 have proper hosts for OTG. + * As such the passby settings need to be set for them as well. + */ + if (phy->id != 0 || IS_ENABLED(CONFIG_MACH_SUNXI_H3_H5) || + IS_ENABLED(CONFIG_MACH_SUN50I)) sunxi_usb_phy_passby(phy, SUNXI_USB_PASSBY_EN); #ifdef CONFIG_MACH_SUN8I_A83T