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

Commit 36350577 authored by Chandana Kishori Chiluveru's avatar Chandana Kishori Chiluveru Committed by Manu Gautam
Browse files

usb: dwc3-msm: Allow PM suspend in host mode irrespective of runtimePM



DWC3 driver uses wakeup_source and allows pm_suspend only after
entering low power mode as part of runtime suspend. This prevents
PM suspend in host mode if connected device and its driver doesn't
support runtime or selective suspend.
Add support in driver where user can specify using dtsi attribute
to not use wakeup source in host mode. It will allow system to enter
deep sleep or pm_suspend irrespective of runtime PM state of XHCI.
Also, super-speed PHY cannot be suspended in SS mode bus-suspend.
Allowing PM suspend without SS PHY wouldn't give much power
savings as XO and VMIN can't happen. For this reason force host
mode disconnect if SS host mode so that SS PHY can be suspended.
On high level below are the changes in default behavior:
 -Do not use wakeup_source for DWC3 when operating in host mode.
 -For HS host mode, devices will suspend upon PM suspend and resumed
  after PM resume in case not runtime suspended already.
 -For SS host mode stop host before PM suspend start host on PM resume.

CRs-fixed: 2009301
Change-Id: I3749b96296cfc86428bdd4da4ce9c70fb4e4b98c
Signed-off-by: default avatarChandana Kishori Chiluveru <cchiluve@codeaurora.org>
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent 20059604
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