Submitted v8 patch for the change. Thanks for the review. On Sun, Jun 30, 2019 at 3:46 PM Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> wrote: > > On Mon, 3 Jun 2019 20:38:35 +0800 > Zhuohao Lee <zhuohao@xxxxxxxxxxxx> wrote: > > > + if (IS_ERR_OR_NULL(root)) { > > + pr_debug("mtd device %s won't show data in debugfs\n", > > + dev_name(dev)); > > You should be able to use dev_dbg() here since you have a valid dev > name. done > > > + return; > > + } > > + > > + if (mtd->dbg.partid) { > > + dent = debugfs_create_file("partid", S_IRUSR, root, mtd, > > + &mtd_partid_debug_fops); > > + if (IS_ERR_OR_NULL(dent)) > > + pr_err("cannot create debugfs entry for partid\n"); > > Same here, dev_err(). done > > > + } > > + if (mtd->dbg.partname) { > > + dent = debugfs_create_file("partname", S_IRUSR, root, mtd, > > + &mtd_partname_debug_fops); > > + if (IS_ERR_OR_NULL(dent)) > > + pr_err("cannot create debugfs entry for partname\n"); > > And here too. done > > > + } > > +} > > + > > Looks good otherwise. Once addressed you can add> > Reviewed-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> added in the v8 patch ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/