Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8fb1250 authored by Himanshu Madhani's avatar Himanshu Madhani Committed by James Bottomley
Browse files

qla2xxx: Prevent multiple firmware dump collection for ISP27XX.



For ISP27XX, driver will capture new firmware dump even if there is
one already collected. Prevent this from happening by checking
fw_dumped flag.

Signed-off-by: default avatarGiridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: default avatarHimanshu Madhani <himanshu.madhani@qlogic.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent fd564b5d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -60,7 +60,7 @@
 * |                              |                    | 0xb13c-0xb140  |
 * |                              |                    | 0xb13c-0xb140  |
 * |                              |                    | 0xb149		|
 * |                              |                    | 0xb149		|
 * | MultiQ                       |       0xc00c       |		|
 * | MultiQ                       |       0xc00c       |		|
 * | Misc                         |       0xd213       | 0xd016-0xd017	|
 * | Misc                         |       0xd300       | 0xd016-0xd017	|
 * |                              |                    | 0xd021,0xd024	|
 * |                              |                    | 0xd021,0xd024	|
 * |                              |                    | 0xd025,0xd029	|
 * |                              |                    | 0xd025,0xd029	|
 * |                              |                    | 0xd02a,0xd02e	|
 * |                              |                    | 0xd02a,0xd02e	|
+4 −0
Original line number Original line Diff line number Diff line
@@ -947,6 +947,10 @@ qla27xx_fwdump(scsi_qla_host_t *vha, int hardware_locked)
		ql_log(ql_log_warn, vha, 0xd01e, "fwdump buffer missing.\n");
		ql_log(ql_log_warn, vha, 0xd01e, "fwdump buffer missing.\n");
	else if (!vha->hw->fw_dump_template)
	else if (!vha->hw->fw_dump_template)
		ql_log(ql_log_warn, vha, 0xd01f, "fwdump template missing.\n");
		ql_log(ql_log_warn, vha, 0xd01f, "fwdump template missing.\n");
	else if (vha->hw->fw_dumped)
		ql_log(ql_log_warn, vha, 0xd300,
		    "Firmware has been previously dumped (%p),"
		    " -- ignoring request\n", vha->hw->fw_dump);
	else
	else
		qla27xx_execute_fwdt_template(vha);
		qla27xx_execute_fwdt_template(vha);