summaryrefslogtreecommitdiff
path: root/drivers/scsi/ufs/ufs-debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/ufs/ufs-debugfs.c')
-rw-r--r--drivers/scsi/ufs/ufs-debugfs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufs-debugfs.c b/drivers/scsi/ufs/ufs-debugfs.c
index 9aaf7e5eaf92..8babc3045d24 100644
--- a/drivers/scsi/ufs/ufs-debugfs.c
+++ b/drivers/scsi/ufs/ufs-debugfs.c
@@ -1026,12 +1026,17 @@ static const struct file_operations ufsdbg_req_stats_desc = {
void ufsdbg_add_debugfs(struct ufs_hba *hba)
{
+ char root_name[sizeof("ufshcd00")];
+
if (!hba) {
dev_err(hba->dev, "%s: NULL hba, exiting", __func__);
goto err_no_root;
}
- hba->debugfs_files.debugfs_root = debugfs_create_dir("ufs", NULL);
+ snprintf(root_name, ARRAY_SIZE(root_name), "%s%d", UFSHCD,
+ hba->host->host_no);
+
+ hba->debugfs_files.debugfs_root = debugfs_create_dir(root_name, NULL);
if (IS_ERR(hba->debugfs_files.debugfs_root))
/* Don't complain -- debugfs just isn't enabled */
goto err_no_root;