Skip to content

hisi_sas: A device rescan and IT nexus reset fix

John Garry linux-scsi lkml 1 version Applied

Status from this message: Applied to 5.19/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3scsi: libsas: Refactor sas_ata_hard_reset()drivers/scsi/libsas/sas_ata.c include/scsi/sas_ata.h+34 -140 replies
2/3scsi: hisi_sas: Use sas_ata_wait_after_reset() in IT nexus resetdrivers/scsi/hisi_sas/hisi_sas_main.c+12 -70 replies
3/3scsi: hisi_sas: Fix rescan after deleting a diskdrivers/scsi/hisi_sas/hisi_sas_main.c+18 -290 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchYihang LiXiang Chen
1/3T-b R-b
2/3T-b R-b
3/3T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] hisi_sas: A device rescan and IT nexus reset fix

Hi,

This series includes 2x fixes for the hisi_sas driver:
- In issuing an ATA softreset in the IT nexus handler the disk may become lost as we may issue the softreset before the phy is back up.

So export functionality from sas_ata_hard_reset() to wait for phy up to synchronize.

- For host rescan we issue a nexus reset to the disk which is unnecessary, so drop it. In addition, usage of the device status flag needs to be fixed.

Please consider for 5.19, thanks!

John Garry (3):
scsi: libsas: Refactor sas_ata_hard_reset()
scsi: hisi_sas: Use sas_ata_wait_after_reset() in IT nexus reset
scsi: hisi_sas: Fix rescan after deleting a disk

 drivers/scsi/hisi_sas/hisi_sas_main.c | 66 ++++++++++++---------------
 drivers/scsi/libsas/sas_ata.c         | 41 +++++++++++------
 include/scsi/sas_ata.h                |  7 +++
 3 files changed, 64 insertions(+), 50 deletions(-)
Signature · 1 line
2.26.2