projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9545767
)
scsi: ufs: Give an unique ID to each ufs-bsg
author
Can Guo
<cang@codeaurora.org>
Tue, 3 Dec 2019 06:58:40 +0000
(06:58 +0000)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Mon, 9 Dec 2019 23:46:18 +0000
(18:46 -0500)
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
patch
|
blob
|
history
diff --git
a/drivers/scsi/ufs/ufs_bsg.c
b/drivers/scsi/ufs/ufs_bsg.c
index baeecee35d1e1229646ae0199d3d37fc023ae1b6..53dd87628cbe4a26997ceaf725ad90dff93418f9 100644
(file)
--- a/
drivers/scsi/ufs/ufs_bsg.c
+++ b/
drivers/scsi/ufs/ufs_bsg.c
@@
-203,7
+203,7
@@
int ufs_bsg_probe(struct ufs_hba *hba)
bsg_dev->parent = get_device(parent);
bsg_dev->release = ufs_bsg_node_release;
- dev_set_name(bsg_dev, "ufs-bsg
"
);
+ dev_set_name(bsg_dev, "ufs-bsg
%u", shost->host_no
);
ret = device_add(bsg_dev);
if (ret)