From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
To: Artem Bityutskiy <dedekind1@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
Mike Frysinger <vapier@gentoo.org>,
richard.weinberger@gmail.com,
Michael Opdenacker <michael.opdenacker@free-electrons.com>,
linux-mtd@lists.infradead.org,
Piergiorgio Beruto <piergiorgio.beruto@gmail.com>,
Brian Norris <computersforpeace@gmail.com>,
David Woodhouse <dwmw2@infradead.org>, Willy Tarreau <w@1wt.eu>
Subject: Re: [PATCH v5] ubi: Introduce block devices for UBI volumes
Date: Fri, 14 Feb 2014 07:41:17 -0300 [thread overview]
Message-ID: <20140214104116.GB19307@localhost> (raw)
In-Reply-To: <1392366441.12215.52.camel@sauron.fi.intel.com>
On Fri, Feb 14, 2014 at 10:27:21AM +0200, Artem Bityutskiy wrote:
> On Thu, 2014-02-13 at 16:58 -0300, Ezequiel Garcia wrote:
[..]
> > + *
> > + * For runtime block attaching/detaching, see mtd-utils' ubiblkvol tool.
> > + */
>
> Good comments is a great thing, very appreciated. However, you already
> put a similar piece of documentation to "MODULE_PARM_DESC()", which is a
> good place, because it is visible to the end-user via 'modinfo'.
>
> Do you think it will make users of this driver understand the the usage
> model better if you duplicate the documentation here? May be, not sure.
>
> I'd say the risk is that people modifying this driver may change this
> comment, but forget to change the modinfo output, or vice-versa.
>
Hm, right.
> I'd refactor this comment to make it look more like a piese of doc for
> the developer, explaining how this module is related to the ubi module.
> Rather than being a duplicate piece of doc for the end user explaining
> how to use this module...
>
Agreed. No problem.
> > +/* Linked list of all ubiblock instances */
> > +static LIST_HEAD(ubiblock_devices);
> > +static DEFINE_MUTEX(devices_mutex);
> > +static int ubiblock_major;
> > +
> > +/* Ugh! this parameter parsing code is awful */
>
> If it is awful, would you also expand the comment and explain why it is
> awful,
It's probably just a silly comment. I guess it just looked a bit hard to
follow.
> and what should be done to make it nice. Or better just do it! I
> mean, generally, when criticizing something it is better to explain why
> and point to the alternatives, no?
>
Hm... dunno. I tried real hard to get it as nice as possible, when I
wrote this (although it seems I started with some other UBI parsing snippet).
--
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
prev parent reply other threads:[~2014-02-14 10:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-13 19:58 [PATCH v5] ubi: Introduce block devices for UBI volumes Ezequiel Garcia
2014-02-14 8:27 ` Artem Bityutskiy
2014-02-14 10:41 ` Ezequiel Garcia [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=20140214104116.GB19307@localhost \
--to=ezequiel.garcia@free-electrons.com \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=michael.opdenacker@free-electrons.com \
--cc=piergiorgio.beruto@gmail.com \
--cc=richard.weinberger@gmail.com \
--cc=thomas.petazzoni@free-electrons.com \
--cc=vapier@gentoo.org \
--cc=w@1wt.eu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).