svn commit: r227350 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Tue Nov 8 18:37:53 UTC 2011
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
More information about the svn-src-all
mailing list