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: Reset in .init()

Reset this PHY in .init() instead of probe() for re-initializing
this PHY after probed correctly.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20231011081817.257113-2-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Yoshihiro Shimoda and committed by
Vinod Koul
aa4c0bbf b5ec2824

+4 -2
+4 -2
drivers/phy/renesas/r8a779f0-ether-serdes.c
··· 214 214 if (dd->initialized) 215 215 return 0; 216 216 217 + reset_control_reset(dd->reset); 218 + 219 + usleep_range(1000, 2000); 220 + 217 221 ret = r8a779f0_eth_serdes_common_init_ram(dd); 218 222 if (ret) 219 223 return ret; ··· 359 355 dd->reset = devm_reset_control_get(&pdev->dev, NULL); 360 356 if (IS_ERR(dd->reset)) 361 357 return PTR_ERR(dd->reset); 362 - 363 - reset_control_reset(dd->reset); 364 358 365 359 for (i = 0; i < R8A779F0_ETH_SERDES_NUM; i++) { 366 360 struct r8a779f0_eth_serdes_channel *channel = &dd->channel[i];