Commit caedb1ba authored by Sujeet Kumar's avatar Sujeet Kumar Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarSujeet Kumar <ksujeet@codeaurora.org>
parent 44f78413
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment