Skip to content
Snippets Groups Projects
Commit 4e5b0bad authored by Sujeet Kumar's avatar Sujeet Kumar Committed by Benoit Goby
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 b71df185
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment