aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
authorJoe Carnuccio <joe.carnuccio@qlogic.com>2009-03-24 12:08:06 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-04-03 10:22:48 -0400
commit1d2874de809a14e6780246b99a18bbc0fc0a8f2a (patch)
tree0f9dc305dc6f802c27bcef6edc607832864b7687 /drivers/scsi/qla2xxx/qla_init.c
parentb9978769877c6c90c8d6777df13b9ae427af40b7 (diff)
[SCSI] qla2xxx: Add Flash-Access-Control support for recent ISPs.
Given the low-level interface varies from one flash-part manufacturer to the next, the Flash-Access-Control (FAC) mailbox command makes the specific flash type transparent to the driver by encapsulating a basic set of accessor and update routines. Use these new routines where applicable by querying FAC opcode get-sector-size at init-time. Additional cleanups and Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 0febfa648c34..c37888e8747d 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -1032,6 +1032,21 @@ qla2x00_setup_chip(scsi_qla_host_t *vha)
1032 spin_unlock_irqrestore(&ha->hardware_lock, flags); 1032 spin_unlock_irqrestore(&ha->hardware_lock, flags);
1033 } 1033 }
1034 1034
1035 if (rval == QLA_SUCCESS && IS_FAC_REQUIRED(ha)) {
1036 uint32_t size;
1037
1038 rval = qla81xx_fac_get_sector_size(vha, &size);
1039 if (rval == QLA_SUCCESS) {
1040 ha->flags.fac_supported = 1;
1041 ha->fdt_block_size = size << 2;
1042 } else {
1043 qla_printk(KERN_ERR, ha,
1044 "Unsupported FAC firmware (%d.%02d.%02d).\n",
1045 ha->fw_major_version, ha->fw_minor_version,
1046 ha->fw_subminor_version);
1047 }
1048 }
1049
1035 if (rval) { 1050 if (rval) {
1036 DEBUG2_3(printk("scsi(%ld): Setup chip **** FAILED ****.\n", 1051 DEBUG2_3(printk("scsi(%ld): Setup chip **** FAILED ****.\n",
1037 vha->host_no)); 1052 vha->host_no));