Skip to content

Commit

Permalink
sky2: turn off pause during shutdown
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jun 18, 2009
1 parent 4bb3f52 commit d104aca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d104aca

Please sign in to comment.