From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH] [MTD] [NAND]: nand_default_mark_blockbad() doesn't work when flash-based bbt not enabled (fwd) From: David Woodhouse To: Ricard Wanderlof In-Reply-To: References: Content-Type: text/plain Date: Mon, 23 Oct 2006 10:52:21 +0100 Message-Id: <1161597141.19446.276.camel@pmac.infradead.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: Linux mtd List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2006-10-23 at 09:33 +0200, Ricard Wanderlof wrote: > (As note, it seems to be that logically, it shouldn't be necessary to set > both length variables, as one appears to be for the main buffer, and > one for the oob buffer, but this is how it is done in several places, > including the code for the mtd character device MEMWRITEOOB and MEMREADOOB > ioctls. I'm not sure if this is a temporary solution during some rework of > the mtd infrastructure, or whether there is a deeper thought here.) Hm. That seems wrong to me. If we don't want to read or write the main area, we should set ops.len to zero. And if that doesn't work, it should probably be fixed. I'd rather see a patch which fixes that. -- dwmw2