Add a WAR from the reference code - clear the PCI error status
upon detach. Obtained from: Atheros
This commit is contained in:
parent
0cbbe87008
commit
65d1eb9443
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user