diff options
author | Xiaofei Tan <tanxiaofei@huawei.com> | 2017-12-09 01:16:45 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-12-14 21:25:03 -0500 |
commit | 057c3d1f07617049671a41bf05652d20071eb639 (patch) | |
tree | 6990ab5ef6de2308ab58dd58d2ff371546fe7c85 /drivers/scsi/hisi_sas/hisi_sas.h | |
parent | e537b62b0796042e1ab66657c4dab662d19e9f0b (diff) | |
download | linux-057c3d1f07617049671a41bf05652d20071eb639.tar.gz linux-057c3d1f07617049671a41bf05652d20071eb639.tar.bz2 linux-057c3d1f07617049671a41bf05652d20071eb639.zip |
scsi: hisi_sas: do link reset for some CHL_INT2 ints
We should do link reset of PHY when identify timeout or STP link timeout. They
are internal events of SOC and are notified to driver through interrupts of
CHL_INT2.
Besides, we should add an delay work to do link reset as it needs sleep. So,
this patch add an new PHY event HISI_PHYE_LINK_RESET for this.
Notes: v2 HW doesn't report the event of STP link timeout. So, we only need
to handle event of identify timeout for v2 HW.
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h index aa14638ab08f..4343c4ce338d 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/drivers/scsi/hisi_sas/hisi_sas.h @@ -126,6 +126,7 @@ enum hisi_sas_bit_err_type { enum hisi_sas_phy_event { HISI_PHYE_PHY_UP = 0U, + HISI_PHYE_LINK_RESET, HISI_PHYES_NUM, }; |