Author: adrian
Date: Tue Oct 18 03:24:17 2011
New Revision: 226490
URL: http://svn.freebsd.org/changeset/base/226490

Log:
  Add a WAR from the reference code - clear the PCI error status
  upon detach.
  
  Obtained from:        Atheros

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 Oct 18 03:17:06 2011        
(r226489)
+++ head/sys/dev/ath/if_ath_pci.c       Tue Oct 18 03:24:17 2011        
(r226490)
@@ -199,6 +199,11 @@ ath_pci_detach(device_t dev)
        /* check if device was removed */
        sc->sc_invalid = !bus_child_present(dev);
 
+       /*
+        * Do a config read to clear pre-existing pci error status.
+        */
+       (void) pci_read_config(dev, PCIR_COMMAND, 4);
+
        ath_detach(sc);
 
        bus_generic_detach(dev);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to