scsi: hisi_sas: Change common allocation mode of device id
authorXiang Chen <chenxiang66@hisilicon.com>
Mon, 21 May 2018 10:09:15 +0000 (18:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 May 2018 02:40:31 +0000 (22:40 -0400)
commit1b86518581f6111f5996ff8d4304bde2e3b05eb9
treef6fa5560cbb53adf2ba795b31d84ed178a09efda
parentfa3be0f23139ddc4dffbfdef6bbd118e30dfcafe
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>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c