]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] qla2xxx: T10 DIF enablement for 81XX
authorArun Easi <arun.easi@qlogic.com>
Fri, 28 May 2010 22:08:27 +0000 (15:08 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:01:26 +0000 (12:01 -0500)
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_attr.c
drivers/scsi/qla2xxx/qla_os.c

index 1e4cafabba15287738b209d6b0725f2cfe23d368..2b499c7601ec8132b472df687a3c6e769d6dae0d 100644 (file)
@@ -1732,7 +1732,7 @@ qla24xx_vport_create(struct fc_vport *fc_vport, bool disable)
                        fc_vport_set_state(fc_vport, FC_VPORT_LINKDOWN);
        }
 
-       if (IS_QLA25XX(ha) && ql2xenabledif) {
+       if ((IS_QLA25XX(ha) || IS_QLA81XX(ha)) && ql2xenabledif) {
                if (ha->fw_attributes & BIT_4) {
                        vha->flags.difdix_supported = 1;
                        DEBUG18(qla_printk(KERN_INFO, ha,
index fa59181bcb02fb903077beb66544e44633bf7333..bc35ecfbc28fbdaf5cbdd2c4bf81765ed1834c1e 100644 (file)
@@ -1677,7 +1677,7 @@ static struct isp_operations qla81xx_isp_ops = {
        .read_optrom            = qla25xx_read_optrom_data,
        .write_optrom           = qla24xx_write_optrom_data,
        .get_flash_version      = qla24xx_get_flash_version,
-       .start_scsi             = qla24xx_start_scsi,
+       .start_scsi             = qla24xx_dif_start_scsi,
        .abort_isp              = qla2x00_abort_isp,
 };
 
@@ -2274,7 +2274,7 @@ skip_dpc:
        DEBUG2(printk("DEBUG: detect hba %ld at address = %p\n",
            base_vha->host_no, ha));
 
-       if (IS_QLA25XX(ha) && ql2xenabledif) {
+       if ((IS_QLA25XX(ha) || IS_QLA81XX(ha)) && ql2xenabledif) {
                if (ha->fw_attributes & BIT_4) {
                        base_vha->flags.difdix_supported = 1;
                        DEBUG18(qla_printk(KERN_INFO, ha,