Author: gonzo
Date: Thu Jan 28 21:55:56 2010
New Revision: 203132
URL: http://svn.freebsd.org/changeset/base/203132

Log:
  - Increase timeouts to 100 milliseconds, 1 millisecond is definitely not
      enough for PCI controller to get into shape
  
  Thanks to: adrian@

Modified:
  head/sys/mips/atheros/ar71xx_pci.c

Modified: head/sys/mips/atheros/ar71xx_pci.c
==============================================================================
--- head/sys/mips/atheros/ar71xx_pci.c  Thu Jan 28 21:14:12 2010        
(r203131)
+++ head/sys/mips/atheros/ar71xx_pci.c  Thu Jan 28 21:55:56 2010        
(r203132)
@@ -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();
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to