Commit 2c15f25b authored by Gavin Shan's avatar Gavin Shan Committed by David S. Miller
Browse files

net/faraday: Stop NCSI device on shutdown



This stops NCSI device when closing the network device so that the
NCSI device can be reenabled later.

Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: default avatarJoel Stanley <joel@jms.id.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c0cd1ba4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1190,6 +1190,8 @@ static int ftgmac100_stop(struct net_device *netdev)
	napi_disable(&priv->napi);
	if (netdev->phydev)
		phy_stop(netdev->phydev);
	else if (priv->use_ncsi)
		ncsi_stop_dev(priv->ndev);

	ftgmac100_stop_hw(priv);
	free_irq(priv->irq, netdev);