2015-02-04 0:37 GMT+09:00 Gilad Broner <gbroner@xxxxxxxxxxxxxx>: > From: Lee Susman <lsusman@xxxxxxxxxxxxxx> > > 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. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html