diff options
author | Scott Wood <scottwood@freescale.com> | 2013-06-20 12:45:31 -0500 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2013-06-21 11:47:43 -0500 |
commit | 9b80aa8ec90d8606346573b92d098470fc320601 (patch) | |
tree | 1f838ff796f5e9c383f922133ccd8b5878034d59 /drivers/dfu/dfu_nand.c | |
parent | eab227645882ccf664cd405fcf6b726e6af25ac0 (diff) | |
download | u-boot-imx-9b80aa8ec90d8606346573b92d098470fc320601.zip u-boot-imx-9b80aa8ec90d8606346573b92d098470fc320601.tar.gz u-boot-imx-9b80aa8ec90d8606346573b92d098470fc320601.tar.bz2 |
nand: Don't call adjust_size_for_badblocks for erase
adjust_size_for_badblocks reduces the operation size to account
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 <scottwood@freescale.com>
Cc: Harvey Chapman <hchapman@3gfp.com>
Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/dfu/dfu_nand.c')
0 files changed, 0 insertions, 0 deletions