]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
usb: dwc3: core: Suspend PHYs on runtime suspend in host mode
authorManu Gautam <mgautam@codeaurora.org>
Wed, 9 May 2018 17:39:21 +0000 (23:09 +0530)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 May 2018 07:20:32 +0000 (10:20 +0300)
commitbcb128777af5e93a0ef017e2416e12cebae715f9
treed64a53167be7e03f69d6c9d17d2887bd22de0576
parenta4333c3a6ba9ca9cff50a3c1d1bf193dc5489e1c
usb: dwc3: core: Suspend PHYs on runtime suspend in host mode

Some PHY drivers (e.g. for Qualcomm QUSB2 and QMP PHYs) support
runtime PM to reduce PHY power consumption during bus_suspend.
Add changes to let core auto-suspend PHYs on host bus-suspend
using GUSB2PHYCFG register if needed for a platform. Also perform
PHYs runtime suspend/resume and let platform glue drivers e.g.
dwc3-qcom handle remote wakeup during bus suspend by waking up
devices on receiving wakeup event from PHY.

Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c