]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
cmd_nand.c: Fix 'nand dump' after latest MTD resync
authorTom Rini <trini@ti.com>
Thu, 23 Feb 2012 22:47:46 +0000 (15:47 -0700)
committerScott Wood <scottwood@freescale.com>
Tue, 28 Feb 2012 20:04:54 +0000 (14:04 -0600)
commitcfdae12f37ad126d1198f6c1ffa4ada9e69dd206
tree46cf89d02d09de2a48b187384e9a6cca54776a0d
parent5f720b85141646055c08bbccb0e2549f654563de
cmd_nand.c: Fix 'nand dump' after latest MTD resync

With 2a8e0fc nand_do_read_ops changed in behavior slightly (keeping in sync
with the kernel which did this change in b64d39d8) such that the OOB data is
always copied into oobbuf and never appended to datbuf.  Within U-Boot only
the nand_dump function (for the dump nand subcommand) was expecting the OOB
data to only be appended to datbuf.  So we now change nand_dump to not
malloc extra space, correct the comment about datbuf and OOB data and switch
the pointer to oobbuf before printing.

Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
common/cmd_nand.c