Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289819
b: refs/heads/master
c: 3e990ff
h: refs/heads/master
i:
  289817: d9f4fbf
  289815: 39e1777
v: v3
  • Loading branch information
Francois Romieu committed Jan 27, 2012
1 parent 8059815 commit 4c3d75b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 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: 4422bcd4907d1bbb9f63e049e3c3819132c047a1
refs/heads/master: 3e990ff5f119c2f9b142f3e2548dc90ca9b7dfa1
16 changes: 9 additions & 7 deletions trunk/drivers/net/ethernet/realtek/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,13 @@ static u8 rtl8168d_efuse_read(void __iomem *ioaddr, int reg_addr)
return value;
}

static void rtl_irq_enable(struct rtl8169_private *tp, u16 bits)
{
void __iomem *ioaddr = tp->mmio_addr;

RTL_W16(IntrMask, bits);
}

static void rtl8169_irq_mask_and_ack(struct rtl8169_private *tp)
{
void __iomem *ioaddr = tp->mmio_addr;
Expand Down Expand Up @@ -4383,6 +4390,8 @@ static void rtl_hw_start(struct net_device *dev)

tp->hw_start(dev);

rtl_irq_enable(tp, tp->intr_event);

netif_start_queue(dev);
}

Expand Down Expand Up @@ -4510,9 +4519,6 @@ static void rtl_hw_start_8169(struct net_device *dev)

/* no early-rx interrupts */
RTL_W16(MultiIntr, RTL_R16(MultiIntr) & 0xF000);

/* Enable all known interrupts by setting the interrupt mask. */
RTL_W16(IntrMask, tp->intr_event);
}

static void rtl_csi_access_enable(void __iomem *ioaddr, u32 bits)
Expand Down Expand Up @@ -4981,8 +4987,6 @@ static void rtl_hw_start_8168(struct net_device *dev)
RTL_W8(Cfg9346, Cfg9346_Lock);

RTL_W16(MultiIntr, RTL_R16(MultiIntr) & 0xF000);

RTL_W16(IntrMask, tp->intr_event);
}

#define R810X_CPCMD_QUIRK_MASK (\
Expand Down Expand Up @@ -5140,8 +5144,6 @@ static void rtl_hw_start_8101(struct net_device *dev)
rtl_set_rx_mode(dev);

RTL_W16(MultiIntr, RTL_R16(MultiIntr) & 0xf000);

RTL_W16(IntrMask, tp->intr_event);
}

static int rtl8169_change_mtu(struct net_device *dev, int new_mtu)
Expand Down

0 comments on commit 4c3d75b

Please sign in to comment.