Skip to content

Commit 8c850a0

Browse files
Can Guomartinkpetersen
authored andcommitted
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: df032bf ("scsi: ufs: Add a bsg endpoint that supports UPIUs") Signed-off-by: Can Guo <[email protected]> Reviewed-by: Avri Altman <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 9545767 commit 8c850a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/ufs/ufs_bsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ int ufs_bsg_probe(struct ufs_hba *hba)
203203
bsg_dev->parent = get_device(parent);
204204
bsg_dev->release = ufs_bsg_node_release;
205205

206-
dev_set_name(bsg_dev, "ufs-bsg");
206+
dev_set_name(bsg_dev, "ufs-bsg%u", shost->host_no);
207207

208208
ret = device_add(bsg_dev);
209209
if (ret)

0 commit comments

Comments
 (0)