USB: phy-msm-usb: Reset PHY on PHCD timeout
If PHY reset is not enabled, PHY suspend
fails after few iteration of plug in plug out
testing. PHY suspend failed because setting
PHCD bit does not succeed.
Enabling PHY reset is helping recovering
from this issue. Add a retry for 3 times,
so that if PM does not call suspend,
then a retry by msm_otg_suspend() itself
can recover from this situation.
Also, return -EBUSY instead of -ETIMEOUT
because PM does not call suspend again on
-ETIMEOUT.
CRs-Fixed: 631053
Change-Id: I344f931e8ce9ec9f2c01f8f2aceb8e1baa6307a9
Signed-off-by:
Sujeet Kumar <ksujeet@codeaurora.org>
Loading
Please register or sign in to comment