OSDN Git Service

usb: dwc3-msm: Allow PM suspend in host mode irrespective of runtimePM
authorAjay Agarwal <ajaya@codeaurora.org>
Thu, 17 Aug 2017 13:17:19 +0000 (18:47 +0530)
committerAjay Agarwal <ajaya@codeaurora.org>
Wed, 27 Sep 2017 05:43:37 +0000 (11:13 +0530)
commitc97f5a36d522c7848c326b69ad72e702193dbf60
tree4f7343954db32072f142c153ec8e7f42acf277f6
parentcb8f9c4da75aaf6cf869ade763661704999b871a
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's 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.
On high level below are the changes in default behavior:
 -Do not use wakeup_source for DWC3 when operating in host mode.
 -For host mode, devices will suspend upon PM suspend and resumed
  after PM resume.

Change-Id: Ia1d450e6dd99e094e48caf9723a355b7870b54dd
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Documentation/devicetree/bindings/usb/msm-ssusb.txt
drivers/usb/dwc3/dwc3-msm.c
drivers/usb/host/xhci-plat.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h