Skip to content

Commit 1a53611

Browse files
shimodayvinodkoul
authored andcommitted
phy: renesas: r8a779f0-ether-serdes: Add .exit() ops
Add r8a779f0_eth_serdes_exit() to clear the initialized flag for re-initializing this PHY if needed. Signed-off-by: Yoshihiro Shimoda <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent aa4c0bb commit 1a53611

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/phy/renesas/r8a779f0-ether-serdes.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,15 @@ static int r8a779f0_eth_serdes_init(struct phy *p)
261261
return ret;
262262
}
263263

264+
static int r8a779f0_eth_serdes_exit(struct phy *p)
265+
{
266+
struct r8a779f0_eth_serdes_channel *channel = phy_get_drvdata(p);
267+
268+
channel->dd->initialized = false;
269+
270+
return 0;
271+
}
272+
264273
static int r8a779f0_eth_serdes_hw_init_late(struct r8a779f0_eth_serdes_channel
265274
*channel)
266275
{
@@ -318,6 +327,7 @@ static int r8a779f0_eth_serdes_set_speed(struct phy *p, int speed)
318327

319328
static const struct phy_ops r8a779f0_eth_serdes_ops = {
320329
.init = r8a779f0_eth_serdes_init,
330+
.exit = r8a779f0_eth_serdes_exit,
321331
.power_on = r8a779f0_eth_serdes_power_on,
322332
.set_mode = r8a779f0_eth_serdes_set_mode,
323333
.set_speed = r8a779f0_eth_serdes_set_speed,

0 commit comments

Comments
 (0)