diff options
author | gonzo <gonzo@FreeBSD.org> | 2009-06-19 05:00:17 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2009-06-19 05:00:17 +0000 |
commit | d946dbd4485dbb7127f9c40bbb7d810577f1bac5 (patch) | |
tree | 096471ecd69b2c4b3a520f3cb642be7eb05536cb /sys/mips/atheros | |
parent | 7e5d961fe80628a4f31a57e9557e812e3a0ef32c (diff) | |
download | FreeBSD-src-d946dbd4485dbb7127f9c40bbb7d810577f1bac5.zip FreeBSD-src-d946dbd4485dbb7127f9c40bbb7d810577f1bac5.tar.gz |
- Flush PCI register write before delay
Spotted by: Pyun YongHyeon
Diffstat (limited to 'sys/mips/atheros')
-rw-r--r-- | sys/mips/atheros/ar71xx_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/mips/atheros/ar71xx_pci.c b/sys/mips/atheros/ar71xx_pci.c index de786e4..345091a 100644 --- a/sys/mips/atheros/ar71xx_pci.c +++ b/sys/mips/atheros/ar71xx_pci.c @@ -296,13 +296,13 @@ ar71xx_pci_attach(device_t dev) reset = ATH_READ_REG(AR71XX_RST_RESET); reset |= (RST_RESET_PCI_CORE | RST_RESET_PCI_BUS); ATH_WRITE_REG(AR71XX_RST_RESET, reset); - DELAY(1000); ATH_READ_REG(AR71XX_RST_RESET); + DELAY(1000); reset &= ~(RST_RESET_PCI_CORE | RST_RESET_PCI_BUS); ATH_WRITE_REG(AR71XX_RST_RESET, reset); - DELAY(1000); ATH_READ_REG(AR71XX_RST_RESET); + DELAY(1000); /* Init PCI windows */ ATH_WRITE_REG(AR71XX_PCI_WINDOW0, PCI_WINDOW0_ADDR); |