Commit 1fd82f3c authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

sky2: PCI irq issues

Add some read's to avoid any PCI posting issues when controlling
irq's.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c0bad0f2
...@@ -1495,6 +1495,7 @@ static int sky2_up(struct net_device *dev) ...@@ -1495,6 +1495,7 @@ static int sky2_up(struct net_device *dev)
imask = sky2_read32(hw, B0_IMSK); imask = sky2_read32(hw, B0_IMSK);
imask |= portirq_msk[port]; imask |= portirq_msk[port];
sky2_write32(hw, B0_IMSK, imask); sky2_write32(hw, B0_IMSK, imask);
sky2_read32(hw, B0_IMSK);
sky2_set_multicast(dev); sky2_set_multicast(dev);
...@@ -1812,6 +1813,7 @@ static int sky2_down(struct net_device *dev) ...@@ -1812,6 +1813,7 @@ static int sky2_down(struct net_device *dev)
imask = sky2_read32(hw, B0_IMSK); imask = sky2_read32(hw, B0_IMSK);
imask &= ~portirq_msk[port]; imask &= ~portirq_msk[port];
sky2_write32(hw, B0_IMSK, imask); sky2_write32(hw, B0_IMSK, imask);
sky2_read32(hw, B0_IMSK);
synchronize_irq(hw->pdev->irq); synchronize_irq(hw->pdev->irq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment