Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d104acaf authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

sky2: turn off pause during shutdown



This unblocks the chip if it is stuck in pause cycle during
shutdown.

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4bb3f522
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1808,7 +1808,8 @@ static int sky2_down(struct net_device *dev)

	synchronize_irq(hw->pdev->irq);

	sky2_gmac_reset(hw, port);
	/* Force flow control off */
	sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_OFF);

	/* Stop transmitter */
	sky2_write32(hw, Q_ADDR(txqaddr[port], Q_CSR), BMU_STOP);