aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-06-07 18:23:39 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-06-07 18:23:39 +0000
commit3de6b54859f9aeddf64692b52f79dc19e45071ab (patch)
tree1a571ab7d562da72352468bcf54b67906b2bef84 /target/linux
parent5a89b9d24199153441ee4245d6817605e49477e0 (diff)
downloadupstream-3de6b54859f9aeddf64692b52f79dc19e45071ab.tar.gz
upstream-3de6b54859f9aeddf64692b52f79dc19e45071ab.tar.bz2
upstream-3de6b54859f9aeddf64692b52f79dc19e45071ab.zip
flush AR71XX_RESET_PCI_INT_ENABLE register after writing
SVN-Revision: 16372
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/irq.c6
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 = {