From: Stefan Roese <sr@denx.de>
To: Pekon Gupta <pekon@ti.com>, Brian Norris <computersforpeace@gmail.com>
Cc: linux-mtd <linux-mtd@lists.infradead.org>, Felipe Balbi <balbi@ti.com>
Subject: Re: [PATCH v5 0/4] mtd: nand: omap: optimize chip->ecc.calculate() for H/W ECC schemes
Date: Wed, 08 Jan 2014 09:08:31 +0100 [thread overview]
Message-ID: <52CD077F.8080203@denx.de> (raw)
In-Reply-To: <1389102346-1455-1-git-send-email-pekon@ti.com>
On 07.01.2014 14:45, Pekon Gupta wrote:
> This patch series is split version of earlier patch:
> http://lists.infradead.org/pipermail/linux-mtd/2013-November/050240.html
>
> chip->ecc.calculate() is used for calculating and fetching of ECC syndrome by
> processing the data passed during Read/Write accesses.
> Though all H/W ECC schemes in OMAP NAND use GPMC controller for ECC calculation
> But each of them implements its own callback to process and fetch ECC syndrome.
>
> This patch tries to merge common code for different BCHx_ECC schemes into single
> omap_calculate_ecc_bch(). This imporves scalability for future ecc-schemes.
> +----------------------+----------------------------+
> | ecc-scheme | nand_chip->ecc.calculate |
> +----------------------+----------------------------+
> | HAM1_ECC | omap_calculate_ecc() |
> | BCH4_HW_DETECTION_SW | omap3_calculate_ecc_bch4() |
> | BCH4_HW | omap3_calculate_ecc_bch() |
> | BCH8_HW_DETECTION_SW | omap3_calculate_ecc_bch8() |
> | BCH8_HW | omap3_calculate_ecc_bch() |
> +----------------------+----------------------------+
>
>
> Pekon Gupta (4):
> mtd: nand: omap: ecc.calculate: rename omap3_calculate_ecc_bch to
> omap_calculate_ecc_bch
> mtd: nand: omap: ecc.calculate: refactor omap_calculate_ecc_bch for
> BCHx_HW ecc-scheme
> mtd: nand: omap: ecc.calculate: merge omap3_calculate_ecc_bch4 in
> omap_calculate_ecc_bch
> mtd: nand: omap: ecc.calculate: merge omap3_calculate_ecc_bch8 in
> omap_calculate_ecc_bch
>
> drivers/mtd/nand/omap2.c | 187 +++++++++++++++--------------------------------
> 1 file changed, 60 insertions(+), 127 deletions(-)
Thanks Pekon. This works just fine on our AM335x based board. So, for
the complete patch series:
Tested-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
prev parent reply other threads:[~2014-01-08 8:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-07 13:45 [PATCH v5 0/4] mtd: nand: omap: optimize chip->ecc.calculate() for H/W ECC schemes Pekon Gupta
2014-01-07 13:45 ` [PATCH v5 1/4] mtd: nand: omap: ecc.calculate: rename omap3_calculate_ecc_bch to omap_calculate_ecc_bch Pekon Gupta
2014-01-07 13:45 ` [PATCH v5 2/4] mtd: nand: omap: ecc.calculate: refactor omap_calculate_ecc_bch for BCHx_HW ecc-scheme Pekon Gupta
2014-01-07 13:45 ` [PATCH v5 3/4] mtd: nand: omap: ecc.calculate: merge omap3_calculate_ecc_bch4 in omap_calculate_ecc_bch Pekon Gupta
2014-01-07 13:45 ` [PATCH v5 4/4] mtd: nand: omap: ecc.calculate: merge omap3_calculate_ecc_bch8 " Pekon Gupta
2014-01-08 8:08 ` Stefan Roese [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=52CD077F.8080203@denx.de \
--to=sr@denx.de \
--cc=balbi@ti.com \
--cc=computersforpeace@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).