From: Wolfgang Denk Date: Tue, 18 Aug 2009 21:24:02 +0200 Subject: [U-Boot] [PATCH] NAND: DaVinci: Adding 4 BIT ECC support In-Reply-To: <20090818151213.GB26119@b07421-ec1.am.freescale.net> References: <1250001905-10172-1-git-send-email-s-paulraj@ti.com> <20090818000339.GA27217@b07421-ec1.am.freescale.net> <0554BEF07D437848AF01B9C9B5F0BC5D7E996155@dlee01.ent.ti.com> <20090818151213.GB26119@b07421-ec1.am.freescale.net> Message-ID: <20090818192402.B0C2E833DBD2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Scott Wood, In message <20090818151213.GB26119@b07421-ec1.am.freescale.net> you wrote: > On Tue, Aug 18, 2009 at 08:56:03AM -0500, Paulraj, Sandeep wrote: > > > > + case NAND_ECC_READSYN: > > > > + val = emif_regs->NAND4BITECC1; > > > > > > Use I/O accessors. > > I could not understand this one. It is done similarly nand_davinci_enable_hwecc which is used for 1 BIT ECC. > > NANDFCR is a control register and we have to write the appropriate valvue to it. > > We similarly write to other register that are part of the IP in other sections of this driver. > > Well, the comment applies to the rest of the driver too. I won't NACK > because of it, but it's something to consider in the future. Well, I will NAK it, then. We should really write clean code these days. Best regards, 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 Some people march to the beat of a different drummer. And some people tango!