From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com ([66.187.233.31]) by canuck.infradead.org with esmtps (Exim 4.43 #1 (Red Hat Linux)) id 1Cs0LX-0000OP-Ql for linux-mtd@lists.infradead.org; Fri, 21 Jan 2005 10:05:12 -0500 Message-ID: <41F119F8.2050500@redhat.com> Date: Fri, 21 Jan 2005 09:04:24 -0600 From: "David A. Marlin" MIME-Version: 1.0 To: tglx@linutronix.de References: <41ED2EB3.1070203@redhat.com> <1106068748.16877.109.camel@tglx.tec.linutronix.de> <41ED50B7.9000107@redhat.com> <1106082905.16877.141.camel@tglx.tec.linutronix.de> <41F03217.3070300@redhat.com> <1106299658.5483.16.camel@tglx.tec.linutronix.de> In-Reply-To: <1106299658.5483.16.camel@tglx.tec.linutronix.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: MTD List Subject: Re: additional error checks for AG-AND erase/write List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Thomas Gleixner wrote: > On Thu, 2005-01-20 at 16:35 -0600, David A. Marlin wrote: : >>Note: I changed a few literals to defined symbols in 'nand_base.c'. >>Please let me know if you would prefer this in a separate patch (or not >>at all). > > If it's not too much work it would be nice when you can do this change > first. Sure. Would you like it as a patch, or should I just commit it? >>@@ -1052,6 +1062,30 @@ >> static int nand_read_ecc (struct mtd_info *mtd, loff_t from, size_t len, >> size_t * retlen, u_char * buf, u_char * oob_buf, struct nand_oobinfo *oobsel) >> { >>+ return do_nand_read_ecc(mtd, from, len, retlen, buf, oob_buf, oobsel, 0xff); >>+} > > Can you please change the call in nand_read too, so it calls > do_nand_read_ecc directly instead of doing the double call ? Will do. As I was looking over this, it occurred to me that the new name (do_nand_read_ecc) will be visible external to 'nand_base.c', but the function does not begin with 'nand'. Would it be more appropriate to call it 'nand_do_read_ecc'? Just trying to be consistent. Thank you, d.marlin