sky2: turn off pause during shutdown

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

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Stephen Hemminger 2009-06-17 07:30:32 +00:00 committed by David S. Miller
parent 4bb3f52207
commit d104acaf05
1 changed files with 2 additions and 1 deletions

View File

@ -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);