Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20231011081817.257113-3-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Yoshihiro Shimoda and committed by
Vinod Koul
1a536118 aa4c0bbf

+10
+10
drivers/phy/renesas/r8a779f0-ether-serdes.c
··· 261 261 return ret; 262 262 } 263 263 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 + 264 273 static int r8a779f0_eth_serdes_hw_init_late(struct r8a779f0_eth_serdes_channel 265 274 *channel) 266 275 { ··· 327 318 328 319 static const struct phy_ops r8a779f0_eth_serdes_ops = { 329 320 .init = r8a779f0_eth_serdes_init, 321 + .exit = r8a779f0_eth_serdes_exit, 330 322 .power_on = r8a779f0_eth_serdes_power_on, 331 323 .set_mode = r8a779f0_eth_serdes_set_mode, 332 324 .set_speed = r8a779f0_eth_serdes_set_speed,