diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2011-10-18 03:24:17 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2011-10-18 03:24:17 +0000 |
| commit | 65d1eb944323fd97d8a829ee554beb5200772930 (patch) | |
| tree | 89e9f27c1559ba71c0d1c7363dc8601cc3473128 /sys/dev/ath/if_ath_pci.c | |
| parent | 0cbbe87008b80f09ad96bf0ec67fb435893c1f43 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ath/if_ath_pci.c')
| -rw-r--r-- | sys/dev/ath/if_ath_pci.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath_pci.c b/sys/dev/ath/if_ath_pci.c index fa3cf3b408c8..531c79adb744 100644 --- a/sys/dev/ath/if_ath_pci.c +++ b/sys/dev/ath/if_ath_pci.c @@ -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); |
