OSDN Git Service

phy: usb: Add "wake on" functionality for newer Synopsis XHCI controllers
authorAl Cooper <alcooperx@gmail.com>
Tue, 15 Feb 2022 03:24:21 +0000 (19:24 -0800)
committerVinod Koul <vkoul@kernel.org>
Fri, 25 Feb 2022 08:43:19 +0000 (14:13 +0530)
commitae532b2b7aa5a3dad036aef4e0b177607172d276
treeacaa1d22490034b96750549889c4b5a27a8e7600
parent10c573c61338d80c271f3579da22772c483d8a7a
phy: usb: Add "wake on" functionality for newer Synopsis XHCI controllers

Add "wake on" support for the newer Synopsis based XHCI only controller.
This works on the 72165 and 72164 and newer chips and does not work
on 7216 based systems. Also switch the USB sysclk to a slower clock
on suspend to save additional power in S2. The clock switch will only
save power on the 72165b0 and newer chips and is a nop on older chips.

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220215032422.5179-1-f.fainelli@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c