summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hisi_sas/hisi_sas.h
diff options
context:
space:
mode:
authorXiang Chen <chenxiang66@hisilicon.com>2018-05-21 18:09:15 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2018-05-28 22:40:31 -0400
commit1b86518581f6111f5996ff8d4304bde2e3b05eb9 (patch)
treef6fa5560cbb53adf2ba795b31d84ed178a09efda /drivers/scsi/hisi_sas/hisi_sas.h
parentfa3be0f23139ddc4dffbfdef6bbd118e30dfcafe (diff)
downloadblackbird-obmc-linux-1b86518581f6111f5996ff8d4304bde2e3b05eb9.tar.gz
blackbird-obmc-linux-1b86518581f6111f5996ff8d4304bde2e3b05eb9.zip
scsi: hisi_sas: Change common allocation mode of device id
To reduce possibility of hitting unknown SoC bugs and aid debugging and test, change allocation mode of device id from last used device id instead of lowest available index. 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>
Diffstat (limited to 'drivers/scsi/hisi_sas/hisi_sas.h')
-rw-r--r--drivers/scsi/hisi_sas/hisi_sas.h1
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 3c8840089cd5..b4717bd8af3f 100644
--- a/drivers/scsi/hisi_sas/hisi_sas.h
+++ b/drivers/scsi/hisi_sas/hisi_sas.h
@@ -275,6 +275,7 @@ struct hisi_hba {
int slot_index_count;
int last_slot_index;
+ int last_dev_id;
unsigned long *slot_index_tags;
unsigned long reject_stp_links_msk;
OpenPOWER on IntegriCloud