rswitch: Add PM ops
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tue, 17 Oct 2023 11:34:02 +0000 (20:34 +0900)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 19 Oct 2023 08:59:33 +0000 (10:59 +0200)
commit35b78409e1c7fff0f209f0aed7297e9fca13351d
tree32aecbb404ea8ee20ce0103af8623a5d7386d0e9
parent1bf55630694e0a87be529801ad064daed36f25f3
rswitch: Add PM ops

Add PM ops for Suspend to Idle. When the system suspended,
the Ethernet Serdes's clock will be stopped. So, this driver needs
to re-initialize the Ethernet Serdes by phy_init() in
renesas_eth_sw_resume(). Otherwise, timeout happened in phy_power_on().

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/renesas/rswitch.c