Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8dfce6e1 authored by Jack Pham's avatar Jack Pham
Browse files

usb: phy: msm-hsusb: Only turn on/off regulators if retentioned



The HSPHY should only turn off its regulators if it has entered
retention mode, which only should happen if not in host mode and
without a charger or cable connected. The resume path should
re-enable these regulators if they have been turned off, but
checking the host or charger connected states may be error-prone
since they could have been changed by the controller in between
suspend and resume. Instead keep track of this status in an
lpm_flags member in order to properly reverse the operations
when resuming the PHY.

Change-Id: If021654b0e34856e5ab8064129cf0d87aa017154
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 1559d923
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment