OSDN Git Service

net: phy: realtek: Disable clock on suspend
authorDetlev Casanova <detlev.casanova@collabora.com>
Mon, 5 Jun 2023 15:40:10 +0000 (11:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jun 2023 08:52:24 +0000 (09:52 +0100)
commit59e227e2894b28c4409e89d04a33868c176587b2
tree34aedd91ecdace9436deb258db1f55e0ec091cfb
parent350b7a258f20427a411a888e5af0684327d49e3a
net: phy: realtek: Disable clock on suspend

For PHYs that call rtl821x_probe() where an external clock can be
configured, make sure that the clock is disabled
when ->suspend() is called and enabled on resume.

The PHY_ALWAYS_CALL_SUSPEND is added to ensure that the suspend function
is actually always called.

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/realtek.c