mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
We only do isp_reinit from isp_async if ISP_FW_CRASH_DUMP is defined-
otherwise the core code does this.
This commit is contained in:
parent
fc3bbaaa8b
commit
8a5f89b96d
1 changed files with 12 additions and 0 deletions
|
|
@ -3040,7 +3040,19 @@ isp_async(struct ispsoftc *isp, ispasync_t cmd, void *arg)
|
|||
isp_prt(isp, ISP_LOGERR,
|
||||
"Internal Firmware Error on bus %d @ RISC Address 0x%x",
|
||||
mbox6, mbox1);
|
||||
#ifdef ISP_FW_CRASH_DUMP
|
||||
/*
|
||||
* XXX: really need a thread to do this right.
|
||||
*/
|
||||
if (IS_FC(isp)) {
|
||||
FCPARAM(isp)->isp_fwstate = FW_CONFIG_WAIT;
|
||||
FCPARAM(isp)->isp_loopstate = LOOP_NIL;
|
||||
isp_freeze_loopdown(isp, "f/w crash");
|
||||
isp_fw_dump(isp);
|
||||
}
|
||||
isp_reinit(isp);
|
||||
isp_async(isp, ISPASYNC_FW_RESTARTED, NULL);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
case ISPASYNC_UNHANDLED_RESPONSE:
|
||||
|
|
|
|||
Loading…
Reference in a new issue