Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299529
b: refs/heads/master
c: a8c9cb1
h: refs/heads/master
i:
  299527: 9d0b35f
v: v3
  • Loading branch information
Jason Wang authored and David S. Miller committed Apr 13, 2012
1 parent ea68dd9 commit 25f1b71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 03662e41c7cff64a776bfb1b3816de4be43de881
refs/heads/master: a8c9cb106fe79c28d6b7f1397652cadd228715ff
10 changes: 8 additions & 2 deletions trunk/drivers/net/ethernet/realtek/8139cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,11 @@ static inline void cp_start_hw (struct cp_private *cp)
cpw8(Cmd, RxOn | TxOn);
}

static void cp_enable_irq(struct cp_private *cp)
{
cpw16_f(IntrMask, cp_intr_mask);
}

static void cp_init_hw (struct cp_private *cp)
{
struct net_device *dev = cp->dev;
Expand Down Expand Up @@ -997,8 +1002,6 @@ static void cp_init_hw (struct cp_private *cp)

cpw16(MultiIntr, 0);

cpw16_f(IntrMask, cp_intr_mask);

cpw8_f(Cfg9346, Cfg9346_Lock);
}

Expand Down Expand Up @@ -1130,6 +1133,8 @@ static int cp_open (struct net_device *dev)
if (rc)
goto err_out_hw;

cp_enable_irq(cp);

netif_carrier_off(dev);
mii_check_media(&cp->mii_if, netif_msg_link(cp), true);
netif_start_queue(dev);
Expand Down Expand Up @@ -2031,6 +2036,7 @@ static int cp_resume (struct pci_dev *pdev)
/* FIXME: sh*t may happen if the Rx ring buffer is depleted */
cp_init_rings_index (cp);
cp_init_hw (cp);
cp_enable_irq(cp);
netif_start_queue (dev);

spin_lock_irqsave (&cp->lock, flags);
Expand Down

0 comments on commit 25f1b71

Please sign in to comment.