From: Artem Bityutskiy <dedekind1@gmail.com>
To: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
linux-mtd@lists.infradead.org, tglx@linutronix.de
Subject: Re: [PATCH 3/5] mtd/nand: add support for BBT without OOB
Date: Thu, 30 Sep 2010 12:14:25 +0300 [thread overview]
Message-ID: <1285838065.11684.57.camel@localhost> (raw)
In-Reply-To: <20100930085111.GA12354@Chamillionaire.breakpoint.cc>
On Thu, 2010-09-30 at 10:51 +0200, Sebastian Andrzej Siewior wrote:
> * Artem Bityutskiy | 2010-09-29 23:11:04 [+0300]:
>
> >Few minor things.
> >
> >First, is it please possible to add more descriptive comment into the
> >code. Something like you put to the patch description, may be even a bit
> >more descriptive. May be to the header of nand_bbt.c?
> We usually don't have description in C code. Usually there is kernel doc
> which describe the function and some description in Documentation/
> which describes how should work. I could add something to the header of
> the file and we move it leater to Doc*/mtd/bbt_hadling.txt ?
My point was that it is better to have a somewhat descriptive comment
in .c file which explains the differences in BBTs and reasons for them
and classifies them. This helps a lot. I mean, .c file comment is better
than no comments.
But a got Doc*/mtd/bbt_hadling.txt would be perfect, if you go that far,
this would be even better.
> >> + if (marker_len) {
> >> + /*
> >> + * In case the BBT marker is not in the OOB area it
> >> + * will be just in the first page
> >> + */
> >
> >Yes, this is the right multi-line comment. You may also put a dot at the
> >end. But in other places you used not the right multi-line comments.
> The missing dot is probally easy to fix. Other place where I did not use
> correct multi-line comments are the .h file were I successfully
> attempted to follow the style there. I'm going to fix it as well.
Thanks!
> >> +/* If passed additionally to NAND_USE_FLASH_BBT then BBT code will not touch
> >> + * the OOB area */
> >
> >And this. Yeah, I know this file uses different styles, but you could
> >convert even all of them.
> I would prefer to send a cleanup afterwards and not mixing code changes
> with no changes.
Ok.
> You want someone to keep checkpatch shut for other files as well or just
> this one?
You could do this for this file, but if you do for other files, this is
even better :-) Do as much extra contribution as you feel like!
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
next prev parent reply other threads:[~2010-09-30 9:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-29 17:43 Add support for BBT without touching OOB area Sebastian Andrzej Siewior
2010-09-29 17:43 ` [PATCH 1/5] mtd/nand: use ALIGN where possible Sebastian Andrzej Siewior
2010-09-29 17:43 ` [PATCH 2/5] mtd/nand: pull in td into read_bbt() Sebastian Andrzej Siewior
2010-09-29 17:43 ` [PATCH 3/5] mtd/nand: add support for BBT without OOB Sebastian Andrzej Siewior
2010-09-29 20:11 ` Artem Bityutskiy
2010-09-30 8:51 ` Sebastian Andrzej Siewior
2010-09-30 9:14 ` Artem Bityutskiy [this message]
2010-09-30 19:28 ` [PATCH v2] " Sebastian Andrzej Siewior
2010-10-01 18:56 ` Artem Bityutskiy
2010-09-29 17:43 ` [PATCH 4/5] mtd/nand: introduce NAND_CREATE_EMPTY_BBT Sebastian Andrzej Siewior
2010-10-01 18:57 ` Artem Bityutskiy
2010-10-01 19:37 ` [PATCH v2] " Sebastian Andrzej Siewior
2010-10-01 20:00 ` Artem Bityutskiy
2010-09-29 17:43 ` [PATCH 5/5] mtd/nandsim: add module param for BBT handling Sebastian Andrzej Siewior
2010-09-29 20:11 ` Add support for BBT without touching OOB area Artem Bityutskiy
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=1285838065.11684.57.camel@localhost \
--to=dedekind1@gmail.com \
--cc=bigeasy@linutronix.de \
--cc=linux-mtd@lists.infradead.org \
--cc=sebastian@breakpoint.cc \
--cc=tglx@linutronix.de \
/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