linux/drivers/scsi/hisi_sas
Xiang Chen 57dbb2b218 scsi: hisi_sas: Send HARD RESET to clear the previous affiliation of STP target port
If we exchange SAS expander from one SAS controller to other SAS controller
without powering it down, the STP target port will maintain previous
affiliation and reject all subsequent connection requests from other STP
initiator ports with OPEN_REJECT (STP RESOURCES BUSY).

To solve this issue, send HARD RESET to clear the previous affiliation of
STP target port according to SPL (chapter 6.19.4).

We (re-)introduce dev status flag to know if to sleep in NEXUS reset code
or not for remote PHYs. The idea is that if the device is being
initialised, we don't require the delay, and caller would wait for link to
be established, cf. sas_ata_hard_reset().

Co-developed-by: Luo Jiaxing <luojiaxing@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-03-06 19:26:46 -05:00
..
hisi_sas_main.c scsi: hisi_sas: Send HARD RESET to clear the previous affiliation of STP target port 2019-03-06 19:26:46 -05:00
hisi_sas_v1_hw.c scsi: hisi_sas: Issue internal abort on all relevant queues 2019-02-08 18:08:22 -05:00
hisi_sas_v2_hw.c scsi: hisi_sas: Send HARD RESET to clear the previous affiliation of STP target port 2019-03-06 19:26:46 -05:00
hisi_sas_v3_hw.c scsi: hisi_sas: print PHY RX errors count for later revision of v3 hw 2019-03-06 19:26:46 -05:00
hisi_sas.h scsi: hisi_sas: Send HARD RESET to clear the previous affiliation of STP target port 2019-03-06 19:26:46 -05:00
Kconfig scsi: hisi_sas: Remove depends on HAS_DMA in case of platform dependency 2018-03-21 18:34:21 -04:00
Makefile scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00