Skip to content

Commit bf6061b

Browse files
Sawan Chandakmartinkpetersen
authored andcommitted
scsi: qla2xxx: Add fix to read correct register value for ISP82xx.
Add fix to read correct register value for ISP82xx, during check for register disconnect.ISP82xx has different base register. Fixes: a465537 ("qla2xxx: Disable the adapter and skip error recovery in case of register disconnect") Signed-off-by: Sawan Chandak <[email protected]> Signed-off-by: Himanshu Madhani <[email protected]> Cc: <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 8eaf7df commit bf6061b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/scsi/qla2xxx/qla_os.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,8 +1126,13 @@ static inline
11261126
uint32_t qla2x00_isp_reg_stat(struct qla_hw_data *ha)
11271127
{
11281128
struct device_reg_24xx __iomem *reg = &ha->iobase->isp24;
1129+
struct device_reg_82xx __iomem *reg82 = &ha->iobase->isp82;
11291130

1130-
return ((RD_REG_DWORD(&reg->host_status)) == ISP_REG_DISCONNECT);
1131+
if (IS_P3P_TYPE(ha))
1132+
return ((RD_REG_DWORD(&reg82->host_int)) == ISP_REG_DISCONNECT);
1133+
else
1134+
return ((RD_REG_DWORD(&reg->host_status)) ==
1135+
ISP_REG_DISCONNECT);
11311136
}
11321137

11331138
/**************************************************************************

0 commit comments

Comments
 (0)