Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2011 18:37:52 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227350 - head/sys/dev/ath
Message-ID:  <201111081837.pA8IbqTp043572@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Tue Nov  8 18:37:52 2011
New Revision: 227350
URL: http://svn.freebsd.org/changeset/base/227350

Log:
  Conditionally compile the PCI latency workaround; I think it's
  only required for some earlier NICs.

Modified:
  head/sys/dev/ath/if_ath_pci.c

Modified: head/sys/dev/ath/if_ath_pci.c
==============================================================================
--- head/sys/dev/ath/if_ath_pci.c	Tue Nov  8 18:36:59 2011	(r227349)
+++ head/sys/dev/ath/if_ath_pci.c	Tue Nov  8 18:37:52 2011	(r227350)
@@ -78,8 +78,10 @@ struct ath_pci_softc {
 static void
 ath_pci_setup(device_t dev)
 {
+#ifdef	ATH_PCI_LATENCY_WAR
 	/* Override the system latency timer */
 	pci_write_config(dev, PCIR_LATTIMER, 0x80, 1);
+#endif
 
 	/* If a PCI NIC, force wakeup */
 #ifdef	ATH_PCI_WAKEUP_WAR



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