Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159668
b: refs/heads/master
c: 264bb4f
h: refs/heads/master
v: v3
  • Loading branch information
Mike McCormack authored and David S. Miller committed Aug 14, 2009
1 parent 00a9fd9 commit 7440c58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a510996bea68eec2feb7818e9a440bd840613a25
refs/heads/master: 264bb4fab1a0952b4eef4df5b9e90bc050a2d1e6
9 changes: 3 additions & 6 deletions trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1811,11 +1811,8 @@ static void sky2_tx_clean(struct net_device *dev)
netif_tx_unlock_bh(dev);
}

static void sky2_tx_reset(struct sky2_port* sky2)
static void sky2_tx_reset(struct sky2_hw *hw, unsigned port)
{
unsigned port = sky2->port;
struct sky2_hw *hw = sky2->hw;

/* Disable Force Sync bit and Enable Alloc bit */
sky2_write8(hw, SK_REG(port, TXA_CTRL),
TXA_DIS_FSYNC | TXA_DIS_ALLOC | TXA_STOP_RC);
Expand Down Expand Up @@ -1877,8 +1874,6 @@ static int sky2_down(struct net_device *dev)
&& port == 0 && hw->dev[1] && netif_running(hw->dev[1])))
sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_RST_SET);

sky2_tx_reset(sky2);

sky2_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_RST_SET);

/* Force any delayed status interrrupt and NAPI */
Expand All @@ -1903,6 +1898,8 @@ static int sky2_down(struct net_device *dev)
/* turn off LED's */
sky2_write16(hw, B0_Y2LED, LED_STAT_OFF);

sky2_tx_reset(hw, port);

sky2_tx_clean(dev);
sky2_rx_clean(sky2);

Expand Down

0 comments on commit 7440c58

Please sign in to comment.