]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: ti: phy-da8xx-usb: Add runtime PM support
authorBastien Curutchet <bastien.curutchet@bootlin.com>
Tue, 28 May 2024 10:20:23 +0000 (12:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 13:44:11 +0000 (15:44 +0200)
commitee8e41b5044f637d9f2dc160f9099a308ec65533
treebf74a9349b46f29091ec4788f6d2697e15d39eaa
parent876483a5a5bde7011cf10b1a3a559afd819fd14f
phy: ti: phy-da8xx-usb: Add runtime PM support

Runtime PM is not supported while USB PHY can be turned off from
register accesses.

Add runtime PM for the USB2.0 PHY. The PHY is entirely shut down to save
as much power as possible. This means that gadgets will not be discovered
once suspend state is entered, and suspend state can not be left without
an explicit user intervention (through sysfs). That's why runtime PM is
disabled by default.

Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20240528102026.40136-2-bastien.curutchet@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/ti/phy-da8xx-usb.c