Add a WAR from the reference code - clear the PCI error status

upon detach.

Obtained from:	Atheros
This commit is contained in:
Adrian Chadd 2011-10-18 03:24:17 +00:00
parent 0cbbe87008
commit 65d1eb9443
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226490

View File

@ -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);