diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-06-17 11:30:33 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-18 05:46:49 +0400 |
commit | c0bad0f2e4366d5bbfe0c4a7a80bca8f4b05272b (patch) | |
tree | 183e29403c3e89d08524ee911c735fb3c40777e3 /drivers/net/sky2.c | |
parent | d104acaf0540aee527d22eafd14b0a3d30be7f81 (diff) | |
download | linux-c0bad0f2e4366d5bbfe0c4a7a80bca8f4b05272b.tar.xz |
sky2: more receive shutdown
Reset more parts of the receive path when device is take offline.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r-- | drivers/net/sky2.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 5de2a9063b2b..e4e24ee00fb2 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -1151,7 +1151,14 @@ stopped: /* reset the Rx prefetch unit */ sky2_write32(hw, Y2_QADDR(rxq, PREF_UNIT_CTRL), PREF_UNIT_RST_SET); - mmiowb(); + + /* Reset the RAM Buffer receive queue */ + sky2_write8(hw, RB_ADDR(rxq, RB_CTRL), RB_RST_SET); + + /* Reset Rx MAC FIFO */ + sky2_write8(hw, SK_REG(sky2->port, RX_GMF_CTRL_T), GMF_RST_SET); + + sky2_read8(hw, B0_CTST); } /* Clean out receive buffer area, assumes receiver hardware stopped */ |