Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300765
b: refs/heads/master
c: 02d5d11
h: refs/heads/master
i:
  300763: 4404ef3
v: v3
  • Loading branch information
Tony Zelenoff authored and David S. Miller committed Apr 15, 2012
1 parent 8d85788 commit 46a2438
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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: 5c3d52ef5a043b17175b50c9b8a7a043dd763662
refs/heads/master: 02d5d11bfa6d94676856c048a8471a4014368492
13 changes: 9 additions & 4 deletions trunk/drivers/net/ethernet/atheros/atlx/atlx.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,20 @@ static void atlx_set_multi(struct net_device *netdev)
}
}

static inline void atlx_imr_set(struct atlx_adapter *adapter,
unsigned int imr)
{
iowrite32(imr, adapter->hw.hw_addr + REG_IMR);
ioread32(adapter->hw.hw_addr + REG_IMR);
}

/*
* atlx_irq_enable - Enable default interrupt generation settings
* @adapter: board private structure
*/
static void atlx_irq_enable(struct atlx_adapter *adapter)
{
iowrite32(IMR_NORMAL_MASK, adapter->hw.hw_addr + REG_IMR);
ioread32(adapter->hw.hw_addr + REG_IMR);
atlx_imr_set(adapter, IMR_NORMAL_MASK);
}

/*
Expand All @@ -171,8 +177,7 @@ static void atlx_irq_enable(struct atlx_adapter *adapter)
*/
static void atlx_irq_disable(struct atlx_adapter *adapter)
{
iowrite32(0, adapter->hw.hw_addr + REG_IMR);
ioread32(adapter->hw.hw_addr + REG_IMR);
atlx_imr_set(adapter, 0);
synchronize_irq(adapter->pdev->irq);
}

Expand Down

0 comments on commit 46a2438

Please sign in to comment.