]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] qla2xxx: Add bit to identify adapters for thermal temp.
authorJoe Carnuccio <joe.carnuccio@qlogic.com>
Wed, 22 Aug 2012 18:21:05 +0000 (14:21 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 14 Sep 2012 17:28:48 +0000 (18:28 +0100)
Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_mbx.c

index 691be37b8918545ec51f292c208606a2e0ae80a6..1b7bea17e56d7af986672dda3522ffd6aee47f9e 100644 (file)
@@ -4425,7 +4425,8 @@ qla2x00_get_thermal_temp(scsi_qla_host_t *vha, uint16_t *temp, uint16_t *frac)
            "Entered %s.\n", __func__);
 
        /* Integer part */
-       rval = qla2x00_read_sfp(vha, 0, &byte, 0x98, 0x01, 1, BIT_13|BIT_0);
+       rval = qla2x00_read_sfp(vha, 0, &byte, 0x98, 0x01, 1,
+               BIT_13|BIT_12|BIT_0);
        if (rval != QLA_SUCCESS) {
                ql_dbg(ql_dbg_mbx, vha, 0x10c9, "Failed=%x.\n", rval);
                ha->flags.thermal_supported = 0;
@@ -4434,7 +4435,8 @@ qla2x00_get_thermal_temp(scsi_qla_host_t *vha, uint16_t *temp, uint16_t *frac)
        *temp = byte;
 
        /* Fraction part */
-       rval = qla2x00_read_sfp(vha, 0, &byte, 0x98, 0x10, 1, BIT_13|BIT_0);
+       rval = qla2x00_read_sfp(vha, 0, &byte, 0x98, 0x10, 1,
+               BIT_13|BIT_12|BIT_0);
        if (rval != QLA_SUCCESS) {
                ql_dbg(ql_dbg_mbx, vha, 0x1019, "Failed=%x.\n", rval);
                ha->flags.thermal_supported = 0;