From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Fri, 21 Jun 2013 06:19:19 +0200 Subject: [U-Boot] [PATCH] nand: Don't call adjust_size_for_badblocks for erase In-Reply-To: <1371750758-9589-1-git-send-email-scottwood@freescale.com> References: <1371750758-9589-1-git-send-email-scottwood@freescale.com> Message-ID: <51C3D447.8000303@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 Hello Scott, Am 20.06.2013 19:52, schrieb Scott Wood: > adjust_size_for_badblocks reduces the the operation size to account nitpicking: please only one "the". > for the block skipping done by the read/write functions when an > interval (partition name or whole chip) is specified rather than a data > amount. > > Erase does not do block skipping, except for erase.spread which takes > a data amount rather than an interval (and thus already does not call > adjust_size_for_badblocks). Calling adjust_size_for_badblocks when > block skipping is not done means that if bad blocks are present, > the "nand erase.part" and "nand erase.chip" commands will fail to erase > blocks at the end of the interval. > > Signed-off-by: Scott Wood > Cc: Harvey Chapman > --- > common/cmd_nand.c | 9 +-------- > 1 file changed, 1 insertion(+), 8 deletions(-) Acked-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany