From: Scott Wood Date: Wed, 22 May 2013 16:42:23 -0500 Subject: [U-Boot] nand: adjust erase/read/write partition/chip size for bad blocks In-Reply-To: <20130522213641.GA30546@scott-Lenovo-G560> (from scottwood@freescale.com on Wed May 22 16:36:41 2013) References: <1361935287-62872-1-git-send-email-hchapman@3gfp.com> <20130522213641.GA30546@scott-Lenovo-G560> Message-ID: <1369258943.1374.30@scott-Lenovo-G560> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/22/2013 04:36:41 PM, Scott Wood wrote: > On Tue, Feb 26, 2013 at 05:21:27PM -0000, Harvey Chapman wrote: > > Adjust the sizes calculated for whole partition/chip operations by > > removing the size of bad blocks so we don't try to erase/read/write > > past a partition/chip boundary. > > > > Signed-off-by: Harvey Chapman > > > > --- > > common/cmd_nand.c | 35 +++++++++++++++++++++++++++++++++++ > > 1 file changed, 35 insertions(+) > > Applied to u-boot-nand-flash... > > > + /* size is unspecified */ > > + if (argc < 5) > > + adjust_size_for_badblocks(&rwsize, off, > dev); > > ...after fixing this to be &size rather than &rwsize. ...and then noticed that the next patch in my queue was a resent version of this with that fixed. :-P -Scott