All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Wu <josh.wu@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/3] at91: atmel_nand: add PMECC(Programmable Multibit ECC controller) support
Date: Wed, 15 Aug 2012 16:19:11 +0800	[thread overview]
Message-ID: <502B5B7F.4000606@atmel.com> (raw)
In-Reply-To: <502B54B3.4050803@gmail.com>

Hi, Andreas

Thank you for the quick reply.

On 8/15/2012 3:50 PM, Andreas Bie?mann wrote:
> Dear Josh Wu,
>
> On 15.08.2012 08:50, Josh Wu wrote:
>> Hi, Andreas
>>
>> Sorry, in these patches of current version, it still has a bug, which
>> will fail to write with PMECC, I will send out the v2 patch soon which
>> include this bug fix.
> Oups, sorry I had this patch series not on my list. Will review this or
> v2 these days.
> On first sight the first two in series are ok, the third one has style
> problems:
>
> ---8<---
> abiessmann at azuregos % ./tools/checkpatch.pl
> U-Boot-3-3-at91-atmel_nand-Update-driver-to-support-Programmable-Multibit-ECC-controller.patch
> WARNING: line over 80 characters
> ...
> total: 1 errors, 27 warnings, 787 lines checked
>
> NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX
> MULTISTATEMENT_MACRO_USE_DO_WHILE
>
> U-Boot-3-3-at91-atmel_nand-Update-driver-to-support-Programmable-Multibit-ECC-controller.patch
> has style problems, please review.
>
> If any of these errors are false positives, please report
> them to the maintainer, see CHECKPATCH in MAINTAINERS.
> --->8---
>
> I personally do not really care about the 80 char warning but please
> remove these for the sake of peace ;) and please have a look for the
> reported error.

sure, I will fix that. :)

> And the last, you should add at least one user of this feature. Isn't
> the lately applied at91sam9x5ek (is in u-boot-atmel/master and
> u-boot-arm/master) a perfect user for that?

you are right, The PMECC usage is for 9x5ek board.
I planed to push the PMECC support patches in 9x5 board in two part:
    one is this series, which only include nand flash driver changes. I 
thought those patches should be merged by u-boot mtd maintainer.
    Another part is some patches for 9x5 board file and config file 
which enable PMECC in 9x5ek board. Those patches are not sent out yet.

Now I think if you can merge all above patches to u-boot mainline, then 
maybe I can sent those patches together. What do you think about this?

>
>> On 8/9/2012 6:21 PM, Josh Wu wrote:
>>> This patch series will add PMECC support for atmel nand driver in u-boot.
>>>
>>> The driver patch is ported from kernel patch. The main different from
>>> kernel patch is
>>> the modification about registers access part. in this version it via a
>>> register structure to access.
> A question regarding linux driver. You say it is derived from the kernel
> driver, but I can not see PMECC stuff in kernel:

Sorry,  I am not make it clear about this. Actually, The PMECC stuff is 
not in v3.6-rc1 now, it is queued in kernel MTD maintainer's git tree: 
http://git.infradead.org/linux-mtd.git/commit/1c7b874d33b463f7150b1ab4617f000af9b327fd
Seems the maintainer missed the merge window of v3.6-rc1. I am not sure 
that can go into v3.6 or not. But I think it is not a bad idea to push 
those code into u-boot. :)

> ---8<---
> abiessmann at azuregos % git describe
> v3.6-rc1-355-gddf343f
> abiessmann at azuregos % diff -Nrupa drivers/mtd/nand/atmel_nand.c
> ../u-boot/drivers/mtd/nand/atmel_nand.c | diffstat
>   atmel_nand.c | 1231
> ++++++++++++++++++++++++++++++++++-------------------------
>   1 file changed, 720 insertions(+), 511 deletions(-)
> abiessmann at azuregos % grep -in pmecc drivers/mtd/nand/atmel_nand*
> abiessmann at azuregos %
> --->8---
>
> Which driver/patch do you mean?
>
>>> It is tested in atmel 9x5 series board.
> Unfortunately I can not test this driver cause I do only have older
> sam926x devices around.

If I send 9x5 board enable patches with nand PMECC patches together, I 
think maybe other people can test it in 9x5ed board.

>
> Best regards
>
> Andreas Bie?mann
>
Best Regards,
Josh Wu

  reply	other threads:[~2012-08-15  8:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09 10:21 [U-Boot] [PATCH 0/3] at91: atmel_nand: add PMECC(Programmable Multibit ECC controller) support Josh Wu
2012-08-09 10:21 ` [U-Boot] [PATCH 1/3] at91: atmel_nand: extract HWECC initialization code into one function: atmel_hw_nand_init_param() Josh Wu
2012-08-09 10:21 ` [U-Boot] [PATCH 2/3] at91: atmel_nand: remove unused variables Josh Wu
2012-08-09 10:21 ` [U-Boot] [PATCH 3/3] at91: atmel_nand: Update driver to support Programmable Multibit ECC controller Josh Wu
2012-08-15  6:50 ` [U-Boot] [PATCH 0/3] at91: atmel_nand: add PMECC(Programmable Multibit ECC controller) support Josh Wu
2012-08-15  7:50   ` Andreas Bießmann
2012-08-15  8:19     ` Josh Wu [this message]
2012-08-15  8:47       ` Andreas Bießmann

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=502B5B7F.4000606@atmel.com \
    --to=josh.wu@atmel.com \
    --cc=u-boot@lists.denx.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.