1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

Only stop the BXE controller if it was first started. Stopping

an uninitialized controller can cause IPMI bus errors on some
systems.

Reviewed by:	yongari
Obtained from:	McAfee, Inc.
MFC after:	2 weeks
This commit is contained in:
Mike Silbersack 2012-09-05 06:51:28 +00:00
parent d8f9ed32c5
commit 66437e8374
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240128

View File

@ -3554,8 +3554,14 @@ bxe_shutdown(device_t dev)
sc = device_get_softc(dev);
DBENTER(BXE_INFO_LOAD | BXE_INFO_RESET | BXE_INFO_UNLOAD);
/* Stop the controller, but only if it was ever started.
* Stopping an uninitialized controller can cause
* IPMI bus errors on some systems.
*/
BXE_CORE_LOCK(sc);
bxe_stop_locked(sc, UNLOAD_NORMAL);
if (sc->state != BXE_STATE_CLOSED) {
bxe_stop_locked(sc, UNLOAD_NORMAL);
}
BXE_CORE_UNLOCK(sc);
DBEXIT(BXE_INFO_LOAD | BXE_INFO_RESET | BXE_INFO_UNLOAD);