Skip to content

Commit 41357a5

Browse files
ffainelligregkh
authored andcommitted
net: bcmgenet: Remove phy_stop() from bcmgenet_netif_stop()
[ Upstream commit 93e0401 ] 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: c96e731 ("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>
1 parent e90cefc commit 41357a5

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/net/ethernet/broadcom/genet/bcmgenet.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3460,7 +3460,6 @@ static void bcmgenet_netif_stop(struct net_device *dev)
34603460
/* Disable MAC transmit. TX DMA disabled must be done before this */
34613461
umac_enable_set(priv, CMD_TX_EN, false);
34623462

3463-
phy_stop(dev->phydev);
34643463
bcmgenet_disable_rx_napi(priv);
34653464
bcmgenet_intr_disable(priv);
34663465

0 commit comments

Comments
 (0)