diff options
author | Joe Carnuccio <joe.carnuccio@qlogic.com> | 2013-02-08 01:57:45 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-02-22 07:23:59 -0500 |
commit | 37f489b580929c542dddc4bb6389d3aeb9bd39be (patch) | |
tree | 63b3d021d8f0b963dce34a6f10b8f7d23b365bc7 /drivers/scsi/qla2xxx | |
parent | 552f3f9aca3b8aee5b1b52bece6771d3275ca744 (diff) |
[SCSI] qla2xxx: Print thermal unsupported message.
When the Read SFP mailbox command fails on the thermal device,
print a message explaining that thermal is not supported.
Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_dbg.c | 2 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c index ba2d7a8906ad..af045ed0a230 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.c +++ b/drivers/scsi/qla2xxx/qla_dbg.c | |||
@@ -12,7 +12,7 @@ | |||
12 | * | Level | Last Value Used | Holes | | 12 | * | Level | Last Value Used | Holes | |
13 | * ---------------------------------------------------------------------- | 13 | * ---------------------------------------------------------------------- |
14 | * | Module Init and Probe | 0x0126 | 0x4b,0xba,0xfa | | 14 | * | Module Init and Probe | 0x0126 | 0x4b,0xba,0xfa | |
15 | * | Mailbox commands | 0x114f | 0x111a-0x111b | | 15 | * | Mailbox commands | 0x1150 | 0x111a-0x111b | |
16 | * | | | 0x112c-0x112e | | 16 | * | | | 0x112c-0x112e | |
17 | * | | | 0x113a | | 17 | * | | | 0x113a | |
18 | * | Device Discovery | 0x2087 | 0x2020-0x2022, | | 18 | * | Device Discovery | 0x2087 | 0x2020-0x2022, | |
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 319b0f2dad23..92d51fc78c08 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c | |||
@@ -4446,7 +4446,11 @@ qla2x00_get_thermal_temp(scsi_qla_host_t *vha, uint16_t *temp, uint16_t *frac) | |||
4446 | 4446 | ||
4447 | ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1018, | 4447 | ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1018, |
4448 | "Done %s.\n", __func__); | 4448 | "Done %s.\n", __func__); |
4449 | return rval; | ||
4449 | fail: | 4450 | fail: |
4451 | ql_log(ql_log_warn, vha, 0x1150, | ||
4452 | "Thermal not supported by this card " | ||
4453 | "(ignoring further requests).\n"); | ||
4450 | return rval; | 4454 | return rval; |
4451 | } | 4455 | } |
4452 | 4456 | ||