[SCSI] qla2xxx: Stop firmware before doing init firmware.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Fri, 23 Jul 2010 10:28:29 +0000 (15:28 +0500)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:06:11 +0000 (09:06 -0500)
If BIOS is enabled then drivers init firmware fails since
BIOS has done the init once.

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_init.c

index 685c350007b0451186ddef6a93121c1098d719cb..f6b1052a3834fe8eee75d5b7380c42b06ab19f4b 100644 (file)
@@ -1402,9 +1402,10 @@ qla2x00_setup_chip(scsi_qla_host_t *vha)
 
        if (IS_QLA82XX(ha)) {
                rval = ha->isp_ops->load_risc(vha, &srisc_address);
-               if (rval == QLA_SUCCESS)
+               if (rval == QLA_SUCCESS) {
+                       qla2x00_stop_firmware(vha);
                        goto enable_82xx_npiv;
-               else
+               else
                        goto failed;
        }