Messages in this thread | | | Date | Fri, 6 Feb 2015 23:42:36 +0900 | Subject | Re: [PATCH v1 2/4] scsi: ufs: add debugfs for ufs | From | Akinobu Mita <> |
| |
2015-02-04 0:37 GMT+09:00 Gilad Broner <gbroner@codeaurora.org>: > From: Lee Susman <lsusman@codeaurora.org> > > Adding debugfs capability for ufshcd.
...
> +void ufsdbg_add_debugfs(struct ufs_hba *hba) > +{ > + if (!hba) { > + pr_err("%s: NULL hba, exiting\n", __func__); > + return; > + } > + > + hba->debugfs_files.debugfs_root = debugfs_create_dir("ufs", NULL);
This creates "ufs" directory in the root of debugfs. So if there are two or more UFS host controllers on a single system, only the first one can succeed. Should we append the index for unique directory name for each contoroller like "ufs0", "ufs1", ...?
MMC debugfs support does something similar, it creates "mmc0" directory in the root of debugfs.
| |