From: Huang Shijie <shijie8@gmail.com>
To: Brian Norris <computersforpeace@gmail.com>
Cc: Huang Shijie <b32955@freescale.com>,
Artem Bityutskiy <dedekind1@gmail.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
David Woodhouse <dwmw2@infradead.org>,
"Gupta, Pekon" <pekon@ti.com>
Subject: Re: [PATCH v4 0/6] Export the ECC step size to user applications
Date: Sun, 18 Aug 2013 10:48:59 -0400 [thread overview]
Message-ID: <20130818144853.GB3615@gmail.com> (raw)
In-Reply-To: <CAN8TOE9hNijUTxHr5t907CBRhF3oGek84jRy=t4NR9bWBOf-YQ@mail.gmail.com>
On Sat, Aug 17, 2013 at 11:35:28AM -0700, Brian Norris wrote:
> Hi Huang,
>
> On Fri, Aug 16, 2013 at 10:10:03AM +0800, Huang Shijie wrote:
> > In order to implement the NAND boot for some Freescale's chips, such as
> > imx23/imx28/imx50/imx6, we use a tool (called kobs-ng) to burn the uboot
> > and some metadata to nand chip. And the ROM code will use the metadata to
> > configrate the BCH, and to find the uboot.
> >
> > The ECC information(ecc step size, ecc strength) which is used to configrate
> > the BCH is part of the metadata. The kobs-ng can gets the ecc strength from
> > the sys node /sys/*/mtdX/ecc_strength now. But it can't gets the ecc step size.
> >
> > This patch set is used to export the ecc step size to user applications.
> > With this patch set, the kobs-ng can gets the ecc step size now.
> >
> > v3 --> v4:
> > [1] rename the ecc_step to ecc_step_size.
> >
> > v2 --> v3:
> > [1] replace the nand_scan() with nand_scan_ident()/nand_scan_tail(),
> > Let the MTD layer to do the initialization for the ECC info.
> > removed some hack code.
> > [2] move the ONFI nand's hooks in nand_set_defaults().
> > [3] change the comments.
> > [4] misc
> >
> > v1 --> v2:
> > [1] rename the ecc_size to ecc_step.
> > [2] rebase on the latest l2-mtd.
> >
> > Huang Shijie (6):
> > mtd: add a new field to mtd_info{}
> > mtd: add a new sys node to show the ecc step size
> > mtd: set the ecc step size for master/slave mtd_info
> > mtd: set ONFI nand's default hooks in nand_set_defaults()
> > mtd: gpmi: remove the nand_scan()
> > mtd: update the ABI document about the ecc step size
> >
> > Documentation/ABI/testing/sysfs-class-mtd | 10 ++++
> > drivers/mtd/mtdcore.c | 11 +++++
> > drivers/mtd/mtdpart.c | 1 +
> > drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 65 +++++++++++++++-------------
> > drivers/mtd/nand/nand_base.c | 13 +++---
> > include/linux/mtd/mtd.h | 3 +
> > 6 files changed, 67 insertions(+), 36 deletions(-)
>
> I think we're still missing updates for a few drivers, which probably
> shouldn't have mtd->ecc_step_size == 0. For instance,
> nand/alauda.c and maybe a few others. Can you take a pass at them,
okay. I will check it right now, and send them a email.
thanks
Huang Shijie
> Huang? Perhaps take a guess at their step size and CC relevant author(s).
> If no one cares, then maybe they can stay as zero.
>
> Anyway, I pushed the whole series, including my edits to patch 6. I will
> amend if there are more comments.
>
> Thanks,
> Brian
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
prev parent reply other threads:[~2013-08-18 2:44 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-16 2:10 [PATCH v4 0/6] Export the ECC step size to user applications Huang Shijie
2013-08-16 2:10 ` [PATCH v4 1/6] mtd: add a new field to mtd_info{} Huang Shijie
2013-08-16 2:10 ` [PATCH v4 2/6] mtd: add a new sys node to show the ecc step size Huang Shijie
2013-08-16 2:10 ` [PATCH v4 3/6] mtd: set the ecc step size for master/slave mtd_info Huang Shijie
2013-08-16 2:10 ` [PATCH v4 4/6] mtd: set ONFI nand's default hooks in nand_set_defaults() Huang Shijie
2013-08-17 17:55 ` Brian Norris
2013-08-19 8:06 ` Brian Foster
2013-08-20 0:41 ` Brian Norris
2013-08-20 7:09 ` Brian Foster
2013-08-16 2:10 ` [PATCH v4 5/6] mtd: gpmi: remove the nand_scan() Huang Shijie
2013-08-16 2:10 ` [PATCH v4 6/6] mtd: update the ABI document about the ecc step size Huang Shijie
2013-08-16 13:45 ` Artem Bityutskiy
2013-08-17 3:26 ` Huang Shijie
2013-08-17 18:14 ` Brian Norris
2013-08-18 14:29 ` Huang Shijie
2013-08-20 1:02 ` Brian Norris
2013-08-20 2:11 ` Huang Shijie
2013-08-17 18:35 ` [PATCH v4 0/6] Export the ECC step size to user applications Brian Norris
2013-08-18 14:48 ` Huang Shijie [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=20130818144853.GB3615@gmail.com \
--to=shijie8@gmail.com \
--cc=b32955@freescale.com \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=pekon@ti.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