Issue: While interface is going down eqos_stop_dev()
is not stopping the PHY sate machine while will
results in scheduling the work queue accessing
the PHY EEE registers in eqos_phy_init_eee().
Fix: Stop the PHY state machine in eqos_stop_dev().
Bug
200236154
Change-Id: Ia3a39a7844aaceaf05382b6e53b2928929cb1188
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-on: http://git-master/r/
1298085
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
gpio_set_value(pdata->phy_reset_gpio, 0);
}
+ /* Stop the PHY state machine */
+ if (pdata->phydev)
+ phy_stop_machine(pdata->phydev);
+
/* turn off sources of data into dev */
netif_tx_disable(pdata->dev);