diff options
author | John Garry <john.garry@huawei.com> | 2017-08-11 00:09:30 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-10 20:15:02 -0400 |
commit | 2b3833510d7f85120ba4dbaf2d5575415f09d27b (patch) | |
tree | e811deaa5bfa205033394e66b5c639205ceb1492 /drivers/scsi/hisi_sas/hisi_sas.h | |
parent | scsi: hisi_sas: add v2 hw DFX feature (diff) | |
download | linux-dev-2b3833510d7f85120ba4dbaf2d5575415f09d27b.tar.xz linux-dev-2b3833510d7f85120ba4dbaf2d5575415f09d27b.zip |
scsi: hisi_sas: use array for v2 hw ECC errors
The code to print ECC errors in v2 hw driver is very repetitive. This
patch condensed the code by looping an array of errors.
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas/hisi_sas.h')
-rw-r--r-- | drivers/scsi/hisi_sas/hisi_sas.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h index ef2238c6e4da..ad6b2d18047b 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/drivers/scsi/hisi_sas/hisi_sas.h @@ -91,6 +91,14 @@ enum hisi_sas_dev_type { HISI_SAS_DEV_TYPE_SATA, }; +struct hisi_sas_hw_error { + u32 irq_msk; + u32 msk; + int shift; + const char *msg; + int reg; +}; + struct hisi_sas_phy { struct hisi_hba *hisi_hba; struct hisi_sas_port *port; |