All of lore.kernel.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Rohit Hassan Sathyanarayan <rohit.hs@samsung.com>
Cc: v.dalal@samsung.com, gupta.raghav@samsung.com,
	linux-mtd@lists.infradead.org
Subject: Re: [PATCH 1/2][MTD]MLC device check in OneNAND driver
Date: Fri, 24 Sep 2010 11:39:53 +0300	[thread overview]
Message-ID: <1285317593.29268.155.camel@localhost> (raw)
In-Reply-To: <000101cb5b16$59d2dab0$0d789010$%hs@samsung.com>

Hi,

few minor things. I could just do this all myself, but since this is not
the first non-perfect patch you send, I think I'll be a little nasty and
ask you should do the exercise :-)

On Thu, 2010-09-23 at 17:26 +0530, Rohit Hassan Sathyanarayan wrote:
> Hi Artem,
> 
> Adding driver check for MLC flash type.
> 
> 
> Signed-off-by: Rohit HS <rohit.hs@samsung.com>
> Signed-off-by: Raghav Gupta <gupta.raghav@samsung.com>

1. Do no add extra line between the message and signed off.

2. Ideally, your patches should be applicable with git-am without the
   need to edit them. Try git am for your patches and see the result -
   the commit message will contain 'Hi Artem,' phrase, which should not
   be there.

> ---
>  drivers/mtd/onenand/onenand_base.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
> index a2bb520..33e0dbb 100644
> --- a/drivers/mtd/onenand/onenand_base.c
> +++ b/drivers/mtd/onenand/onenand_base.c
> @@ -4027,7 +4027,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
>  	mtd->ecclayout = this->ecclayout;
>  
>  	/* Fill in remaining MTD driver data */
> -	mtd->type = MTD_NANDFLASH;
> +	mtd->type = ONENAND_IS_MLC(this) ? MTD_MLCNANDFLASH : MTD_NANDFLASH;
>  	mtd->flags = MTD_CAP_NANDFLASH;
>  	mtd->erase = onenand_erase;
>  	mtd->point = NULL;

The kernel does not compile with this patch. You should make this patch
the second, the first one should introduce MTD_MLCNANDFLASH.

The kernel has to be bisectable, you patches should not break
bisectability.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

  reply	other threads:[~2010-09-24  8:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23 11:56 [PATCH 1/2][MTD]MLC device check in OneNAND driver Rohit Hassan Sathyanarayan
2010-09-24  8:39 ` Artem Bityutskiy [this message]
2010-09-24 11:42   ` Rohit Hassan Sathyanarayan
  -- strict thread matches above, loose matches on Subject: below --
2010-09-14  8:06 Rohit Hassan Sathyanarayan

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=1285317593.29268.155.camel@localhost \
    --to=dedekind1@gmail.com \
    --cc=gupta.raghav@samsung.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=rohit.hs@samsung.com \
    --cc=v.dalal@samsung.com \
    /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.