]> git.baikalelectronics.ru Git - kernel.git/commit
phy: usb: Put USB phys into IDDQ on suspend to save power in S2 mode
authorAl Cooper <alcooperx@gmail.com>
Fri, 3 Jan 2020 18:18:01 +0000 (13:18 -0500)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 8 Jan 2020 07:28:06 +0000 (12:58 +0530)
commit33c161fd0cb4b07d00acfe5151c0d37a21341baa
tree40eb077beedbfeae42dc6c356d0327690482cf31
parent3a3537eb526dee2a9eff8804bb2a0b6b16485f27
phy: usb: Put USB phys into IDDQ on suspend to save power in S2 mode

Currently the Phy driver will put the USB phys into the max
power saving mode (IDDQ) when there is no corresponding XHCI, EHCI
or OHCI client (through rmmod, unbind or if the driver is not
builtin). This change will also put the Phys into IDDQ mode
on suspend so that S2 will get the additional power savings.

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/broadcom/phy-brcm-usb-init.c
drivers/phy/broadcom/phy-brcm-usb.c