qla2xxx: Add udev notification to save fw dump for ISP27XX
authorHimanshu Madhani <himanshu.madhani@qlogic.com>
Thu, 9 Apr 2015 19:00:01 +0000 (15:00 -0400)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 10 Apr 2015 15:42:10 +0000 (08:42 -0700)
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/qla2xxx/qla_tmpl.c

index e077333d404edcf7250d226cae1c749214c9e1d3..d52cdb863243c07db4d1b340e73195647cc18b1c 100644 (file)
@@ -787,11 +787,12 @@ qla27xx_walk_template(struct scsi_qla_host *vha,
        ql_dbg(ql_dbg_misc, vha, 0xd01b,
            "%s: len=%lx\n", __func__, *len);
 
-       if (buf)
+       if (buf) {
                ql_log(ql_log_warn, vha, 0xd015,
                    "Firmware dump saved to temp buffer (%ld/%p)\n",
                    vha->host_no, vha->hw->fw_dump);
-
+               qla2x00_post_uevent_work(vha, QLA_UEVENT_CODE_FW_DUMP);
+       }
 }
 
 static void