Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203762
b: refs/heads/master
c: db5824d
h: refs/heads/master
v: v3
  • Loading branch information
Richard Röjfors authored and David S. Miller committed Jul 27, 2010
1 parent c078dfd commit f3af295
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 7b7b0b90592a023ac8946b29cca871bf17741fab
refs/heads/master: db5824dd3d632acd79094b81e07288ba05ae2cc1
15 changes: 10 additions & 5 deletions trunk/drivers/net/ks8842.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@
#define DRV_NAME "ks8842"

/* Timberdale specific Registers */
#define REG_TIMB_RST 0x1c
#define REG_TIMB_RST 0x1c
#define REG_TIMB_FIFO 0x20
#define REG_TIMB_ISR 0x24
#define REG_TIMB_IER 0x28
#define REG_TIMB_IAR 0x2C
#define REQ_TIMB_DMA_RESUME 0x30

/* KS8842 registers */

Expand Down Expand Up @@ -282,10 +287,6 @@ static void ks8842_reset_hw(struct ks8842_adapter *adapter)
/* restart port auto-negotiation */
ks8842_enable_bits(adapter, 49, 1 << 13, REG_P1CR4);

if (!(adapter->conf_flags & MICREL_KS884X))
/* only advertise 10Mbps */
ks8842_clear_bits(adapter, 49, 3 << 2, REG_P1CR4);

/* Enable the transmitter */
ks8842_enable_tx(adapter);

Expand Down Expand Up @@ -543,6 +544,10 @@ void ks8842_tasklet(unsigned long arg)
/* Ack */
ks8842_write16(adapter, 18, isr, REG_ISR);

if (!(adapter->conf_flags & MICREL_KS884X))
/* Ack in the timberdale IP as well */
iowrite32(0x1, adapter->hw_addr + REG_TIMB_IAR);

if (!netif_running(netdev))
return;

Expand Down

0 comments on commit f3af295

Please sign in to comment.