Commit 8c2cf7d4e387d003259488522523807f25576427

Authored by Sawan Chandak
Committed by James Bottomley
1 parent 353d9449b7

[SCSI] qla2xxx: Add a new interface to update versions.

On any Adapter when we flash through FC/FCoE without card reset option it still
shows the Running FW version in Flashed FW version. This new interface will be
used by API to instruct the driver to update its cache versions.

Signed-off-by: Sawan Chandak <sawan.chandak@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

Showing 2 changed files with 15 additions and 3 deletions Side-by-side Diff

drivers/scsi/qla2xxx/qla_attr.c
... ... @@ -590,7 +590,7 @@
590 590 struct scsi_qla_host *base_vha = pci_get_drvdata(ha->pdev);
591 591 int type;
592 592 uint32_t idc_control;
593   -
  593 + uint8_t *tmp_data = NULL;
594 594 if (off != 0)
595 595 return -EINVAL;
596 596  
597 597  
... ... @@ -687,7 +687,19 @@
687 687 __qla83xx_set_idc_control(vha, idc_control);
688 688 qla83xx_idc_unlock(vha, 0);
689 689 break;
  690 + case 0x20261:
  691 + ql_dbg(ql_dbg_user, vha, 0x70e0,
  692 + "Updating cache versions without reset ");
690 693  
  694 + tmp_data = vmalloc(256);
  695 + if (!tmp_data) {
  696 + ql_log(ql_log_warn, vha, 0x70e1,
  697 + "Unable to allocate memory for VPD information update.\n");
  698 + return -ENOMEM;
  699 + }
  700 + ha->isp_ops->get_flash_version(vha, tmp_data);
  701 + vfree(tmp_data);
  702 + break;
691 703 }
692 704 return count;
693 705 }
drivers/scsi/qla2xxx/qla_dbg.c
... ... @@ -31,7 +31,7 @@
31 31 * | | | 0x5040,0x5075 |
32 32 * | | | 0x503d,0x5044 |
33 33 * | Timer Routines | 0x6012 | |
34   - * | User Space Interactions | 0x70dd | 0x7018,0x702e, |
  34 + * | User Space Interactions | 0x70e1 | 0x7018,0x702e, |
35 35 * | | | 0x7020,0x7024, |
36 36 * | | | 0x7039,0x7045, |
37 37 * | | | 0x7073-0x7075, |