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-eth-serdes: Remove retry code in .init()

Remove retry code in r8a779f0_eth_serdes_init() because
r8a779f0_eth_serdes_chan_setting() was fixed so that no timeout
happened in the initializing procedure.

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

authored by

Yoshihiro Shimoda and committed by
Vinod Koul
50133cd3 d2aa66a9

+4 -10
+4 -10
drivers/phy/renesas/r8a779f0-ether-serdes.c
··· 18 18 #define R8A779F0_ETH_SERDES_BANK_SELECT 0x03fc 19 19 #define R8A779F0_ETH_SERDES_TIMEOUT_US 100000 20 20 #define R8A779F0_ETH_SERDES_NUM_RETRY_LINKUP 3 21 - #define R8A779F0_ETH_SERDES_NUM_RETRY_INIT 3 22 21 23 22 struct r8a779f0_eth_serdes_drv_data; 24 23 struct r8a779f0_eth_serdes_channel { ··· 247 248 static int r8a779f0_eth_serdes_init(struct phy *p) 248 249 { 249 250 struct r8a779f0_eth_serdes_channel *channel = phy_get_drvdata(p); 250 - int i, ret; 251 + int ret; 251 252 252 - for (i = 0; i < R8A779F0_ETH_SERDES_NUM_RETRY_INIT; i++) { 253 - ret = r8a779f0_eth_serdes_hw_init(channel); 254 - if (!ret) { 255 - channel->dd->initialized = true; 256 - break; 257 - } 258 - usleep_range(1000, 2000); 259 - } 253 + ret = r8a779f0_eth_serdes_hw_init(channel); 254 + if (!ret) 255 + channel->dd->initialized = true; 260 256 261 257 return ret; 262 258 }