diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-06-07 18:23:39 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-06-07 18:23:39 +0000 |
commit | f31f3902063d42d5d90d7ff1c96a2fddc4c74346 (patch) | |
tree | 69eebdba938d9f013d63dbe1ba1a0565e06dec60 | |
parent | abe67c1a2e6d0c73adaf30227f735028e4e03c23 (diff) | |
download | master-187ad058-f31f3902063d42d5d90d7ff1c96a2fddc4c74346.tar.gz master-187ad058-f31f3902063d42d5d90d7ff1c96a2fddc4c74346.tar.bz2 master-187ad058-f31f3902063d42d5d90d7ff1c96a2fddc4c74346.zip |
[ar71xx] flush AR71XX_RESET_PCI_INT_ENABLE register after writing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16372 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/irq.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c b/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c index c3ba7ec437..797e6f81a5 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c @@ -50,6 +50,9 @@ static void ar71xx_pci_irq_unmask(unsigned int irq) irq -= AR71XX_PCI_IRQ_BASE; ar71xx_reset_wr(AR71XX_RESET_REG_PCI_INT_ENABLE, ar71xx_reset_rr(AR71XX_RESET_REG_PCI_INT_ENABLE) | (1 << irq)); + + /* flush write */ + ar71xx_reset_rr(AR71XX_RESET_REG_PCI_INT_ENABLE); } static void ar71xx_pci_irq_mask(unsigned int irq) @@ -57,6 +60,9 @@ static void ar71xx_pci_irq_mask(unsigned int irq) irq -= AR71XX_PCI_IRQ_BASE; ar71xx_reset_wr(AR71XX_RESET_REG_PCI_INT_ENABLE, ar71xx_reset_rr(AR71XX_RESET_REG_PCI_INT_ENABLE) & ~(1 << irq)); + + /* flush write */ + ar71xx_reset_rr(AR71XX_RESET_REG_PCI_INT_ENABLE); } static struct irq_chip ar71xx_pci_irq_chip = { |