usb: phy-msm: Resume HW early on bus-resume when pm_suspended
During resume host drives resume signalling for at least ~20msec.
At the end of which device should remove DP pullup and move
to HS state by enabling HS terminations.
If due to some reason device continues in FS mode and drives DP
then host could treat that as error and perform reset.
This can happen if PHY lpm-exit gets delayed. One possibility is
with resume in system suspend as driver relies on pm_resume routine
to bring PHY out of low power mode. Avoid this delay by not
deferring lpm_exit for bus-suspend scenario in device mode and
also helps to do lpm_exit only from sm_work and removing same from
pm_resume.
Change-Id: Ie3757af81c73ea0c03d86fa3396be694c579b9f4
Signed-off-by:
Manu Gautam <mgautam@codeaurora.org>
Loading
Please register or sign in to comment