Skip to content

Latest commit

 

History

History
 
 

16%的机器,以太网不能自动连接,手动插拔之后正常

除了延长时间,还进行重新获取ip

+++ b/drivers/net/ethernet/rockchip/gmac/stmmac_platform.c
@@ -358,10 +358,10 @@ static int phy_power_on(bool enable)
//reset
if (gpio_is_valid(bsp_priv->reset_io)) {
gpio_direction_output(bsp_priv->reset_io,
bsp_priv->reset_io_level);
- mdelay(5);
+ mdelay(100);
gpio_direction_output(bsp_priv->reset_io, !bsp_priv->reset_io_level);
}
- mdelay(30);
+ mdelay(100);
} else {
//pull down reset