scsi: hisi_sas: Initialise devices in .slave_alloc callback
Perform driver-specific SCSI device initialization in the designated SCSI midlayer callback instead of relying on the libsas "device found" callback. The SCSI midlayer .slave_alloc interface is called prior to sending any I/O to the device. Link: https://lore.kernel.org/r/1634041588-74824-2-git-send-email-john.garry@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>
Showing
- drivers/scsi/hisi_sas/hisi_sas.h 1 addition, 0 deletionsdrivers/scsi/hisi_sas/hisi_sas.h
- drivers/scsi/hisi_sas/hisi_sas_main.c 14 additions, 3 deletionsdrivers/scsi/hisi_sas/hisi_sas_main.c
- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c 1 addition, 1 deletiondrivers/scsi/hisi_sas/hisi_sas_v1_hw.c
- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 1 addition, 1 deletiondrivers/scsi/hisi_sas/hisi_sas_v2_hw.c
- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 1 addition, 1 deletiondrivers/scsi/hisi_sas/hisi_sas_v3_hw.c
Loading
Please register or sign in to comment