]> git.karo-electronics.de Git - linux-beck.git/commitdiff
qla2xxx: Add missing ISP27xx checks to optrom code.
authorAlex Vechersky <alex.vechersky@qlogic.com>
Thu, 25 Sep 2014 09:16:58 +0000 (05:16 -0400)
committerChristoph Hellwig <hch@lst.de>
Thu, 25 Sep 2014 12:25:04 +0000 (14:25 +0200)
Signed-off-by: Alex Vechersky <alex.vechersky@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla2xxx/qla_attr.c
drivers/scsi/qla2xxx/qla_bsg.c

index 9391e4bf1fbbf25f5f0d63937ea2a41fc6c38416..82b92c414a9cfe3152933e9cfc191c79c480568c 100644 (file)
@@ -484,7 +484,8 @@ qla2x00_sysfs_write_optrom_ctl(struct file *filp, struct kobject *kobj,
                    start == (ha->flt_region_fw * 4))
                        valid = 1;
                else if (IS_QLA24XX_TYPE(ha) || IS_QLA25XX(ha)
-                       || IS_CNA_CAPABLE(ha) || IS_QLA2031(ha))
+                       || IS_CNA_CAPABLE(ha) || IS_QLA2031(ha)
+                       || IS_QLA27XX(ha))
                        valid = 1;
                if (!valid) {
                        ql_log(ql_log_warn, vha, 0x7065,
index 524f9eb7fcd12d3d6d5b86c7e7ab6de37a8254ad..2e2bb6f45ce6708e2783477d399a40b927d97c00 100644 (file)
@@ -1390,7 +1390,7 @@ qla2x00_optrom_setup(struct fc_bsg_job *bsg_job, scsi_qla_host_t *vha,
                    start == (ha->flt_region_fw * 4))
                        valid = 1;
                else if (IS_QLA24XX_TYPE(ha) || IS_QLA25XX(ha) ||
-                   IS_CNA_CAPABLE(ha) || IS_QLA2031(ha))
+                   IS_CNA_CAPABLE(ha) || IS_QLA2031(ha) || IS_QLA27XX(ha))
                        valid = 1;
                if (!valid) {
                        ql_log(ql_log_warn, vha, 0x7058,