提交 5c3d52ef 编写于 作者: T Tony Zelenoff 提交者: David S. Miller

atl1: use defined functions to disable irq

Looks like direct writes to IMR register is not good idea,
because there are exist functions to make this work.
Signed-off-by: NTony Zelenoff <antonz@parallels.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0dbab2fb
...@@ -266,7 +266,7 @@ static s32 atl1_reset_hw(struct atl1_hw *hw) ...@@ -266,7 +266,7 @@ static s32 atl1_reset_hw(struct atl1_hw *hw)
* interrupts & Clear any pending interrupt events * interrupts & Clear any pending interrupt events
*/ */
/* /*
* iowrite32(0, hw->hw_addr + REG_IMR); * atlx_irq_disable(adapter);
* iowrite32(0xffffffff, hw->hw_addr + REG_ISR); * iowrite32(0xffffffff, hw->hw_addr + REG_ISR);
*/ */
...@@ -2512,7 +2512,7 @@ static irqreturn_t atl1_intr(int irq, void *data) ...@@ -2512,7 +2512,7 @@ static irqreturn_t atl1_intr(int irq, void *data)
dev_printk(KERN_DEBUG, &adapter->pdev->dev, dev_printk(KERN_DEBUG, &adapter->pdev->dev,
"pcie phy link down %x\n", status); "pcie phy link down %x\n", status);
if (netif_running(adapter->netdev)) { /* reset MAC */ if (netif_running(adapter->netdev)) { /* reset MAC */
iowrite32(0, adapter->hw.hw_addr + REG_IMR); atlx_irq_disable(adapter);
schedule_work(&adapter->pcie_dma_to_rst_task); schedule_work(&adapter->pcie_dma_to_rst_task);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
...@@ -2524,7 +2524,7 @@ static irqreturn_t atl1_intr(int irq, void *data) ...@@ -2524,7 +2524,7 @@ static irqreturn_t atl1_intr(int irq, void *data)
dev_printk(KERN_DEBUG, &adapter->pdev->dev, dev_printk(KERN_DEBUG, &adapter->pdev->dev,
"pcie DMA r/w error (status = 0x%x)\n", "pcie DMA r/w error (status = 0x%x)\n",
status); status);
iowrite32(0, adapter->hw.hw_addr + REG_IMR); atlx_irq_disable(adapter);
schedule_work(&adapter->pcie_dma_to_rst_task); schedule_work(&adapter->pcie_dma_to_rst_task);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册