scsi: ufs: Give an unique ID to each ufs-bsg
authorCan Guo <cang@codeaurora.org>
Tue, 3 Dec 2019 06:58:40 +0000 (06:58 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 9 Dec 2019 23:46:18 +0000 (18:46 -0500)
commit8c850a0296004409e7bcb9464712fb2807da656a
tree43a6c6a8456d98d883a1c34ee5d1b8596fae2ef6
parent9545767db3cde2d4f9ca581d096d97ed00754282
scsi: ufs: Give an unique ID to each ufs-bsg

Considering there can be multiple UFS hosts in SoC, give each ufs-bsg an
unique ID by appending the scsi host number to its device name.

Link: https://lore.kernel.org/r/0101016eca8dc9d7-d24468d3-04d2-4ef3-a906-abe8b8cbcd3d-000000@us-west-2.amazonses.com
Fixes: df032bf27a41 ("scsi: ufs: Add a bsg endpoint that supports UPIUs")
Signed-off-by: Can Guo <cang@codeaurora.org>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs_bsg.c