- Flush PCI register write before delay
Spotted by: Pyun YongHyeon
This commit is contained in:
parent
6846a68073
commit
d7766b4586
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user