From: Scott Wood <scottwood@freescale.com>
To: Brian Norris <computersforpeace@gmail.com>
Cc: Artem Bityutskiy <dedekind1@gmail.com>,
Matthieu CASTET <matthieu.castet@parrot.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
Shmulik Ladkani <shmulik.ladkani@gmail.com>,
Ivan Djelic <ivan.djelic@parrot.com>,
David Woodhouse <dwmw2@infradead.org>
Subject: Re: [RFC] nand_btt : use nand chip->block_bad
Date: Wed, 26 Sep 2012 17:57:46 -0500 [thread overview]
Message-ID: <1348700266.9030.26@snotra> (raw)
In-Reply-To: <CAN8TOE_D=rHRqpdkrAvtKL2-6x7UB3exfP587D_MZwqP=a=arg@mail.gmail.com> (from computersforpeace@gmail.com on Wed Sep 26 17:43:35 2012)
On 09/26/2012 05:43:35 PM, Brian Norris wrote:
> On Mon, Sep 17, 2012 at 6:28 PM, Scott Wood <scottwood@freescale.com>
> wrote:
> > On 09/17/2012 08:06:54 PM, Brian Norris wrote:
> >> On Mon, Aug 6, 2012 at 3:21 PM, Brian Norris
> <computersforpeace@gmail.com> wrote:
> ...
> >> The following files use badblock_pattern to varying degrees. Some
> are
> >> just duplicating some nand_base stuff, where we can replace the
> >> badblock_pattern with something simple like "chip->badblockpos =
> 0" or
> >> setting a few "chip->bbt_options |= NAND_BBT_SCAN*" options. But
> it's
> >> not all so simple:
> >>
> >> arch/arm/mach-pxa/corgi.c
> >> arch/arm/mach-pxa/eseries.c
> >> arch/arm/mach-pxa/poodle.c
> >> arch/arm/mach-pxa/spitz.c
> >> arch/arm/mach-pxa/tosa.c
> >> drivers/mtd/nand/bcm_umi_nand.c
> >> drivers/mtd/nand/docg4.c
> >> drivers/mtd/nand/fsl_elbc_nand.c
> >> drivers/mtd/nand/gpmi-nand/gpmi-nand.c
> >> drivers/mtd/nand/nand_base.c
> >> drivers/mtd/nand/omap2.c
> >> drivers/mtd/nand/sh_flctl.c
> >> drivers/mtd/nand/sharpsl.c
> >> drivers/mtd/nand/tmio_nand.c
> >> drivers/mtd/onenand/onenand_bbt.c
> >> include/linux/mfd/tmio.h
> >> include/linux/mtd/sharpsl.h
> >>
> >> Any thoughts on how to tackle this? Or is it even worth doing
> >> properly? Is there a policy for dealing with old/unmaintained
> drivers
> >> here, if I can't get a response from driver authors?
> >
> > fsl_elbc_nand uses this for historical reasons, to retain
> compatibility with
> > the original OOB layout which only reserved one byte for the bad
> block
> > marker and let users write to the second byte. This controller only
> > supports 8-bit chips.
>
> OK. Could this be fixed up by forcing nand_chip.badblockpos=0 in
> fsl_elbc_nand? I think nand_base/nand_bbt are configured to read/write
> only a single byte for 8-bit chips now.
Good, in that case I think we can just drop it. No need to override
nand_chip.badblockpos; it's only the size that we were overriding.
> > See commit 97ae023648e764f794ffb9c52da109d6caf09c47
>
> I can't find such a commit in upstream. Perhaps you're referring to a
> private git tree?
Oops, that was the U-Boot tree. :-P
The Linux commit is 452db2724351ff3d9416a183a7955e00ab4e6ab4
-Scott
next prev parent reply other threads:[~2012-09-26 22:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-28 15:47 [RFC] nand_btt : use nand chip->block_bad Matthieu CASTET
2012-06-28 18:31 ` Shmulik Ladkani
2012-06-29 8:41 ` Matthieu CASTET
2012-06-30 20:02 ` Shmulik Ladkani
2012-07-02 8:29 ` Matthieu CASTET
2012-07-24 3:53 ` Brian Norris
2012-07-25 11:02 ` Shmulik Ladkani
2012-08-06 22:21 ` Brian Norris
2012-08-07 7:09 ` Shmulik Ladkani
2012-09-18 1:06 ` Brian Norris
2012-09-18 1:28 ` Scott Wood
2012-09-26 22:43 ` Brian Norris
2012-09-26 22:57 ` Scott Wood [this message]
2012-09-26 23:15 ` Brian Norris
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=1348700266.9030.26@snotra \
--to=scottwood@freescale.com \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=dwmw2@infradead.org \
--cc=ivan.djelic@parrot.com \
--cc=linux-mtd@lists.infradead.org \
--cc=matthieu.castet@parrot.com \
--cc=shmulik.ladkani@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox