mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
net: bcmgenet: Remove phy_stop() from bcmgenet_netif_stop()
[ Upstream commit93e0401e0f] The call to phy_stop() races with the later call to phy_disconnect(), resulting in concurrent phy_suspend() calls being run from different CPUs. The final call to phy_disconnect() ensures that the PHY is stopped and suspended, too. Fixes:c96e731c93("net: bcmgenet: connect and disconnect from the PHY state machine") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e90cefcffd
commit
41357a52b8
@@ -3460,7 +3460,6 @@ static void bcmgenet_netif_stop(struct net_device *dev)
|
|||||||
/* Disable MAC transmit. TX DMA disabled must be done before this */
|
/* Disable MAC transmit. TX DMA disabled must be done before this */
|
||||||
umac_enable_set(priv, CMD_TX_EN, false);
|
umac_enable_set(priv, CMD_TX_EN, false);
|
||||||
|
|
||||||
phy_stop(dev->phydev);
|
|
||||||
bcmgenet_disable_rx_napi(priv);
|
bcmgenet_disable_rx_napi(priv);
|
||||||
bcmgenet_intr_disable(priv);
|
bcmgenet_intr_disable(priv);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user