mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
nvethernet:Fix cbb error when ifconfig down
Issue: CBB bus error when running ifconfig down on the nvethernet interface. Fix: All MDIO interfaces must be disabled before resetting the MAC. The MDIO was accessed by the MAC. Bug 4714627 Change-Id: Ib75cfae70b13093cc574cd0cd07334cc03468ad7 Signed-off-by: Jason Mei <jianjunm@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3165268 Tested-by: Revanth Kumar Uppala <ruppala@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
118cd4e0a6
commit
bd0a8befee
@@ -3030,15 +3030,15 @@ static int ether_close(struct net_device *ndev)
|
||||
reset_control_assert(pdata->xpcs_rst);
|
||||
}
|
||||
|
||||
/* All MDIO interfaces must be disabled before resetting the MAC */
|
||||
if (pdata->mii)
|
||||
mdiobus_unregister(pdata->mii);
|
||||
|
||||
/* Assert MAC RST gpio */
|
||||
if (pdata->mac_rst) {
|
||||
reset_control_assert(pdata->mac_rst);
|
||||
}
|
||||
|
||||
if (pdata->mii != NULL) {
|
||||
mdiobus_unregister(pdata->mii);
|
||||
}
|
||||
|
||||
/* Disable clock */
|
||||
ether_disable_clks(pdata);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user