]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 18:48:45 +0000 (19:48 +0100)
commit4cb5928cd4ffa660edc127ee26cf88fcbd6f4bdf
tree0402e1b9f8a9a70783ce6fc1ce99efed2df258a9
parent30879f997daec55b4c43c2fecb280d7a2c5d57ba
scsi: ufs: Give an unique ID to each ufs-bsg

commit f089a2b02dadf0dd0774370354a609e72c309602 upstream.

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: 3e86778715cb ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/ufs/ufs_bsg.c