We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04af612 commit 6fb43f6Copy full SHA for 6fb43f6
1 file changed
components/drivers/phy/general.c
@@ -172,22 +172,23 @@ int rt_genphy_update_link(struct rt_phy_device *phydev)
172
!(mii_reg & RT_BMSR_ANEGCOMPLETE))
173
{
174
int i = 0;
175
- rt_kprintf("Waiting for PHY auto negotiation to complete");
+ LOG_I("Waiting for PHY auto negotiation to complete");
176
while (!(mii_reg & RT_BMSR_ANEGCOMPLETE))
177
178
179
if (i > (RT_PHY_ANEG_TIMEOUT))
180
181
- LOG_E(" TIMEOUT !\n");
+ LOG_E(" TIMEOUT!");
182
phydev->link = 0;
183
return -ETIMEDOUT;
184
}
185
186
mii_reg = rt_phy_read(phydev, RT_MDIO_DEVAD_NONE, RT_MII_BMSR);
187
188
rt_thread_delay(100);
189
+ i += 100;
190
- LOG_D(" done\n");
191
+ LOG_D(" Done");
192
phydev->link = 1;
193
} else {
194
0 commit comments