forked from rubenslte/android_kernel_samsung_msm8226
On few legacy platforms, USB PHY is having dedicated reset clk. It is used to reset USB PHY after putting USB PHY into low power mode and for calibration of USB PHY. Putting USB PHY into low power mode is causing ulpi read/write timeout as expected USB PHY reset clk is not available on newer platform. Hence remove USB PHY reset clk usage and related reset code. For 28nm PHY, Reset USB PHY after resestting USB LINK. Also reset USB PHY using USB_PHY_PON bit with USB_OTG_HS_PHY_CTRL register after programming USB PHY Override registers as suggested with hardware programming guidelines. Also debug out important USB register when ulpi read/write timeout is seen with USB PHY. CRs-Fixed: 511102 CRs-Fixed: 511397 Change-Id: I8f0f49211a64aa6eac7643cd91a652aed40132e3 Signed-off-by: Mayank Rana <mrana@codeaurora.org>