From: Chris Moore <moore@free.fr>
To: Guillaume LECERF <glecerf@gmail.com>,
David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd <linux-mtd@lists.infradead.org>,
Wolfram Sang <w.sang@pengutronix.de>,
Artem Bityutskiy <dedekind1@gmail.com>
Subject: Re: [PATCH v4 1/2] [MTD] remove bogus warning about missing boot bank location
Date: Sat, 24 Apr 2010 07:13:00 +0200 [thread overview]
Message-ID: <4BD27DDC.8070903@free.fr> (raw)
In-Reply-To: <20100423133347.27001.99171.stgit@shiryu.yomgui.biz>
Le 23/04/2010 15:33, Guillaume LECERF a écrit :
> From: Uwe Kleine-König<Uwe.Kleine-Koenigi@digi.com>
>
> After the deleted block bootloc is only used once as follows:
>
> if (bootloc == 3&& something_else) {
> ...
>
> So setting bootloc = 2 doesn't change anything. Taking that the warning is
> wrong and missleading.
>
> Signed-off-by: Uwe Kleine-König<Uwe.Kleine-Koenig@digi.com>
> ---
> drivers/mtd/chips/cfi_cmdset_0002.c | 5 -----
> 1 files changed, 0 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c
> index ea2a7f6..8da8655 100644
> --- a/drivers/mtd/chips/cfi_cmdset_0002.c
> +++ b/drivers/mtd/chips/cfi_cmdset_0002.c
> @@ -391,11 +391,6 @@ struct mtd_info *cfi_cmdset_0002(struct map_info *map, int primary)
> #endif
>
> bootloc = extp->TopBottom;
> - if ((bootloc != 2)&& (bootloc != 3)) {
> - printk(KERN_WARNING "%s: CFI does not contain boot "
> - "bank location. Assuming top.\n", map->name);
> - bootloc = 2;
> - }
>
> if (bootloc == 3&& cfi->cfiq->NumEraseRegions> 1) {
> printk(KERN_WARNING "%s: Swapping erase regions for broken CFI table.\n", map->name);
>
>
FWIW:-
Acked-by Christopher Moore <moore@free.fr>
next prev parent reply other threads:[~2010-04-24 5:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-23 13:33 [PATCH v4 1/2] [MTD] remove bogus warning about missing boot bank location Guillaume LECERF
2010-04-23 13:33 ` [PATCH v4 2/2] mtd: cfi_cmdset_0002: do not fail on no extended query table as they are both optional Guillaume LECERF
2010-04-24 5:13 ` Chris Moore [this message]
2010-04-24 9:35 ` [PATCH v4 1/2] [MTD] remove bogus warning about missing boot bank location Wolfram Sang
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=4BD27DDC.8070903@free.fr \
--to=moore@free.fr \
--cc=dedekind1@gmail.com \
--cc=dwmw2@infradead.org \
--cc=glecerf@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=w.sang@pengutronix.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 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.