summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_nx.c
diff options
context:
space:
mode:
authorJoe Carnuccio <joe.carnuccio@qlogic.com>2013-08-27 01:37:36 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-09-03 07:28:03 -0700
commit1ae47cf3007f8f8b7c71efad7ed484d9e1f2831d (patch)
tree927215177b08d9f1827fcbeae5fd9037db51e026 /drivers/scsi/qla2xxx/qla_nx.c
parentc46e65c7e544b85efaec1f0f82e64f9a00217b76 (diff)
downloadlinux-1ae47cf3007f8f8b7c71efad7ed484d9e1f2831d.tar.gz
linux-1ae47cf3007f8f8b7c71efad7ed484d9e1f2831d.tar.bz2
linux-1ae47cf3007f8f8b7c71efad7ed484d9e1f2831d.zip
[SCSI] qla2xxx: Reconfigure thermal temperature.
For supported ISPS, Read asic temperature by calling the GET PARAMS (type C) mailbox command. 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/qla_nx.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_nx.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c
index b3e48f501bc0..11ce53dcbe7e 100644
--- a/drivers/scsi/qla2xxx/qla_nx.c
+++ b/drivers/scsi/qla2xxx/qla_nx.c
@@ -3327,6 +3327,14 @@ static int qla82xx_check_temp(scsi_qla_host_t *vha)
return 0;
}
+int qla82xx_read_temperature(scsi_qla_host_t *vha)
+{
+ uint32_t temp;
+
+ temp = qla82xx_rd_32(vha->hw, CRB_TEMP_STATE);
+ return qla82xx_get_temp_val(temp);
+}
+
void qla82xx_clear_pending_mbx(scsi_qla_host_t *vha)
{
struct qla_hw_data *ha = vha->hw;