[Feature][T8TSK-232]modify the reset timing of phy after wake up
Change-Id: If665ce853d427cae4f3b2626fc4fa31da9bfacce
diff --git a/src/kernel/linux/v4.19/drivers/net/phy/marvell-88q.c b/src/kernel/linux/v4.19/drivers/net/phy/marvell-88q.c
index 930c382..2349cab 100755
--- a/src/kernel/linux/v4.19/drivers/net/phy/marvell-88q.c
+++ b/src/kernel/linux/v4.19/drivers/net/phy/marvell-88q.c
@@ -260,18 +260,22 @@
if(if_suspend == 1)
{
printk("phy awake start\n");
- gpio_direction_output(205 + 268, 1);
+ gpio_direction_output(205 + 268, 1);
gpio_direction_output(PHY_POWER_SUPPLY, 1);
mdelay(1);
gpio_direction_output(NAD_WAKEUP_PHY1, 1);
- mdelay(1000);
+ mdelay(10);
gpio_direction_output(NAD_WAKEUP_PHY1, 0);
- mdelay(1);
+ mdelay(5);
+ gpio_direction_output(NAD_RESET_PHY1, 1);
+ mdelay(1000);
+ gpio_direction_output(NAD_RESET_PHY1, 0);
+ mdelay(30);
gpio_direction_output(NAD_RESET_PHY1, 1);
gpio_direction_output(205 + 268, 0);
mdelay(10);//at lest 4ms for reset phy
q2110_config_init(phydev);
- if_suspend = 0;
+ if_suspend = 0;
}
else
{