projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bb3f52
)
sky2: turn off pause during shutdown
author
Stephen Hemminger
<shemminger@vyatta.com>
Wed, 17 Jun 2009 07:30:32 +0000
(07:30 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 18 Jun 2009 01:46:48 +0000
(18:46 -0700)
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>
drivers/net/sky2.c
patch
|
blob
|
history
diff --git
a/drivers/net/sky2.c
b/drivers/net/sky2.c
index
c6ceba9
..
5de2a90
100644
(file)
--- a/
drivers/net/sky2.c
+++ b/
drivers/net/sky2.c
@@
-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);