From: Zhuohao Lee <zhuohao@chromium.org>
To: Boris Brezillon <boris.brezillon@collabora.com>
Cc: "Nicolas Boichat" <drinkcat@chromium.org>,
bbrezillon@kernel.org, richard@nod.at,
"Brian Norris" <briannorris@chromium.org>,
"Marek Vašut" <marek.vasut@gmail.com>,
linux-mtd@lists.infradead.org,
"Brian Norris" <computersforpeace@gmail.com>,
"David Woodhouse" <dwmw2@infradead.org>
Subject: Re: [PATCH v7 1/2] mtd: mtdcore: add debugfs nodes for querying the flash name and id
Date: Mon, 1 Jul 2019 00:09:47 +0800 [thread overview]
Message-ID: <CABD5yb=D1NgWueLtofGs9UftauwXwr8yheRQaCWNA+SYCj8g=A@mail.gmail.com> (raw)
In-Reply-To: <20190630094559.5a1a9a86@collabora.com>
Submitted v8 patch for the change. Thanks for the review.
On Sun, Jun 30, 2019 at 3:46 PM Boris Brezillon
<boris.brezillon@collabora.com> wrote:
>
> On Mon, 3 Jun 2019 20:38:35 +0800
> Zhuohao Lee <zhuohao@chromium.org> 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@collabora.com>
added in the v8 patch
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
prev parent reply other threads:[~2019-06-30 16:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-03 12:38 [PATCH v7 1/2] mtd: mtdcore: add debugfs nodes for querying the flash name and id Zhuohao Lee
2019-06-17 2:13 ` Zhuohao Lee
2019-06-30 6:12 ` Zhuohao Lee
2019-06-30 7:45 ` Boris Brezillon
2019-06-30 16:09 ` Zhuohao Lee [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABD5yb=D1NgWueLtofGs9UftauwXwr8yheRQaCWNA+SYCj8g=A@mail.gmail.com' \
--to=zhuohao@chromium.org \
--cc=bbrezillon@kernel.org \
--cc=boris.brezillon@collabora.com \
--cc=briannorris@chromium.org \
--cc=computersforpeace@gmail.com \
--cc=drinkcat@chromium.org \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.com \
--cc=richard@nod.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.