Skip to content

Commit 8e76813

Browse files
committed
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fixes from James Bottomley: "Two minor fixes in the hisi_sas driver which only impact enterprise style multi-expander and shared disk situations and no core changes" * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: scsi: hisi_sas: Set a port invalid only if there are no devices attached when refreshing port id scsi: hisi_sas: Use abort task set to reset SAS disks when discovered
2 parents 34cbf89 + f58c897 commit 8e76813

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/scsi/hisi_sas/hisi_sas_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ static int hisi_sas_init_device(struct domain_device *device)
704704
int_to_scsilun(0, &lun);
705705

706706
while (retry-- > 0) {
707-
rc = sas_clear_task_set(device, lun.scsi_lun);
707+
rc = sas_abort_task_set(device, lun.scsi_lun);
708708
if (rc == TMF_RESP_FUNC_COMPLETE) {
709709
hisi_sas_release_task(hisi_hba, device);
710710
break;
@@ -1316,7 +1316,7 @@ static void hisi_sas_refresh_port_id(struct hisi_hba *hisi_hba)
13161316
device->linkrate = phy->sas_phy.linkrate;
13171317

13181318
hisi_hba->hw->setup_itct(hisi_hba, sas_dev);
1319-
} else
1319+
} else if (!port->port_attached)
13201320
port->id = 0xff;
13211321
}
13221322
}

0 commit comments

Comments
 (0)