net: renesas: rswitch: Add phy_power_{on,off}() calling
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 1 Feb 2023 13:14:53 +0000 (22:14 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2023 09:19:40 +0000 (09:19 +0000)
commit5cb630925b49dd13bf3aa43f299b11615c8fe9cd
treea3f6522b2880ee8cacc12cbee0361ae8b10981cf
parent0df024d0f1d3e556e38e5418fc3577a2c7263764
net: renesas: rswitch: Add phy_power_{on,off}() calling

Some Ethernet PHYs (like marvell10g) will decide the host interface
mode by the media-side speed. So, the rswitch driver needs to
initialize one of the Ethernet SERDES (r8a779f0-eth-serdes) ports
after linked the Ethernet PHY up. The r8a779f0-eth-serdes driver has
.init() for initializing all ports and .power_on() for initializing
each port. So, add phy_power_{on,off} calling for it.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/rswitch.c