diff options
author | gonzo <gonzo@FreeBSD.org> | 2010-01-28 21:55:56 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2010-01-28 21:55:56 +0000 |
commit | f9b5b5cdd26bb41d603eb551cc676036bff847b2 (patch) | |
tree | f14f993d2623a3c41f9aa907e1a5250f1fec4830 | |
parent | 687466eca7a30346e2636ee92ac1e133833c4722 (diff) | |
download | FreeBSD-src-f9b5b5cdd26bb41d603eb551cc676036bff847b2.zip FreeBSD-src-f9b5b5cdd26bb41d603eb551cc676036bff847b2.tar.gz |
- Increase timeouts to 100 milliseconds, 1 millisecond is definitely not
enough for PCI controller to get into shape
Thanks to: adrian@
-rw-r--r-- | sys/mips/atheros/ar71xx_pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/mips/atheros/ar71xx_pci.c b/sys/mips/atheros/ar71xx_pci.c index 000860d..d96f5a5 100644 --- a/sys/mips/atheros/ar71xx_pci.c +++ b/sys/mips/atheros/ar71xx_pci.c @@ -297,12 +297,12 @@ ar71xx_pci_attach(device_t dev) reset |= (RST_RESET_PCI_CORE | RST_RESET_PCI_BUS); ATH_WRITE_REG(AR71XX_RST_RESET, reset); ATH_READ_REG(AR71XX_RST_RESET); - DELAY(1000); + DELAY(100000); reset &= ~(RST_RESET_PCI_CORE | RST_RESET_PCI_BUS); ATH_WRITE_REG(AR71XX_RST_RESET, reset); ATH_READ_REG(AR71XX_RST_RESET); - DELAY(1000); + DELAY(100000); /* Init PCI windows */ ATH_WRITE_REG(AR71XX_PCI_WINDOW0, PCI_WINDOW0_ADDR); @@ -313,7 +313,7 @@ ar71xx_pci_attach(device_t dev) ATH_WRITE_REG(AR71XX_PCI_WINDOW5, PCI_WINDOW5_ADDR); ATH_WRITE_REG(AR71XX_PCI_WINDOW6, PCI_WINDOW6_ADDR); ATH_WRITE_REG(AR71XX_PCI_WINDOW7, PCI_WINDOW7_CONF_ADDR); - DELAY(1000); + DELAY(100000); ar71xx_pci_check_bus_error(); |