public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/1] ppc4xx: add support for alternate format for ndfc
Date: Fri, 19 Feb 2010 09:45:14 +0100	[thread overview]
Message-ID: <20100219084514.613A5E75F36@gemini.denx.de> (raw)
In-Reply-To: <4B7DD691.8070805@amcc.com>

Dear Feng Kan,

In message <4B7DD691.8070805@amcc.com> you wrote:
> 
> The problem goes back a bit. The ordering you see in the ndfc file has been changed a
> few times, back and forth and cause quite a bit of problem. The define we speak of is
> in the driver/mtd/nand/nand_ecc.c file. The nand_correct_data function uses two ways

Right,  CONFIG_MTD_NAND_ECC_SMC is only ever defined and used in
driver/mtd/nand/nand_ecc.c, but your patch modifies
drivers/mtd/nand/ndfc.c, i. e. a different file - so this #define will
never be seen there.

Either the code needs to be permanently changed, then we don't need
the #ifdef stuff, or it depends on some conditions, then it's unclear
what these might be.

In any case a clear description of the problem you are trying to fix
is needed, and an explanation how your change is supposed to fix this
problem.

Please provide a specific test case that can be used to 1) see the
problem in the unchanged code and 2) verify that it's working after
applying your suggested changes.

> of check ECC correctness. However the ndfc calculate only supports one ordering, although
> both placement method in the patch would work. It also serves to nail down the ordering
> depending on the define is used or not.

I don;t understand what you mean here. Sorry, but I'm afraid you have
to provide a bit more context.

> There is also the following in the code, should you agree, this will also need to be removed
> as well.
> 
> /* The PPC4xx NDFC uses Smart Media (SMC) bytes order */
> #ifdef CONFIG_NAND_NDFC
> #define CONFIG_MTD_NAND_ECC_SMC
> #endif

This is in another file (driver/mtd/nand/nand_ecc.c) which is not
touched by your patch. If you think this file needs to be changed as
well, then this change should be part of your patch.  Obviously, the
reason for the need to change has to be explained here as well.

Thanks.

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"I say we take off; nuke the site from orbit. It's the only way to be
sure."                                  - Corporal Hicks, in "Aliens"

  reply	other threads:[~2010-02-19  8:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-18 22:25 [U-Boot] [PATCH 1/1] ppc4xx: add support for alternate format for ndfc fkan at amcc.com
2010-02-18 23:13 ` Wolfgang Denk
2010-02-19  0:08   ` Feng Kan
2010-02-19  8:45     ` Wolfgang Denk [this message]
2010-02-19  7:57 ` Stefan Roese
2010-02-19 18:27   ` Feng Kan
2010-02-22 10:52     ` Stefan Roese
2010-02-22 18:06       ` Feng Kan
2010-02-22 20:54         ` Wolfgang Denk
2010-02-23  5:13           ` Feng Kan

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=20100219084514.613A5E75F36@gemini.denx.de \
    --to=wd@denx.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox