diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-02-15 19:40:31 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-17 15:30:47 -0500 |
commit | 7a7b5181517752005fd0dc822176a6975218ec0f (patch) | |
tree | 31c149470672e17ec6ba0ad0dff339a59108b8df | |
parent | 7e7c0982218a70d9bab06efcae66d02f172260e7 (diff) |
sky2: no need to reset pause bits on shutdown
Resetting the pause bits on shutdown is not necessary.
The code was inherited from the vendor driver, and it is currently #ifdef'd
out there as well.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r-- | drivers/net/sky2.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index f2ab3d56e565..e5679965501c 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -1742,13 +1742,6 @@ static void sky2_link_down(struct sky2_port *sky2) | |||
1742 | reg &= ~(GM_GPCR_RX_ENA | GM_GPCR_TX_ENA); | 1742 | reg &= ~(GM_GPCR_RX_ENA | GM_GPCR_TX_ENA); |
1743 | gma_write16(hw, port, GM_GP_CTRL, reg); | 1743 | gma_write16(hw, port, GM_GP_CTRL, reg); |
1744 | 1744 | ||
1745 | if (sky2->flow_status == FC_RX) { | ||
1746 | /* restore Asymmetric Pause bit */ | ||
1747 | gm_phy_write(hw, port, PHY_MARV_AUNE_ADV, | ||
1748 | gm_phy_read(hw, port, PHY_MARV_AUNE_ADV) | ||
1749 | | PHY_M_AN_ASP); | ||
1750 | } | ||
1751 | |||
1752 | netif_carrier_off(sky2->netdev); | 1745 | netif_carrier_off(sky2->netdev); |
1753 | netif_stop_queue(sky2->netdev); | 1746 | netif_stop_queue(sky2->netdev); |
1754 | 1747 | ||