From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Tue, 28 Feb 2012 14:56:07 -0600 Subject: [U-Boot] [PATCH] cmd_nand.c: Fix 'nand dump' after latest MTD resync In-Reply-To: <1330037266-25737-1-git-send-email-trini@ti.com> References: <1330037266-25737-1-git-send-email-trini@ti.com> Message-ID: <4F4D3F67.1000403@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 02/23/2012 04:47 PM, Tom Rini wrote: > 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 > Signed-off-by: Tom Rini > --- > common/cmd_nand.c | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) Applied to u-boot-nand-flash -Scott