Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 2010 21:55:56 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r203132 - head/sys/mips/atheros
Message-ID:  <201001282155.o0SLtus5064205@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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();
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001282155.o0SLtus5064205>