]> git.sur5r.net Git - u-boot/commit
nand_util: correct YAFFS image write function
authorLiu, Wentao <wentao.liu@intel.com>
Tue, 17 Jan 2012 19:55:02 +0000 (19:55 +0000)
committerScott Wood <scott@tyr.buserror.net>
Fri, 18 May 2012 23:08:45 +0000 (18:08 -0500)
commit65683026a5eb07d6186dc02b33b1e5874dbb6591
treec825e42a95025e9667cadd20dc048d88a71a8075
parentd2a97daf629a49a416ed405b8c7c2a1e77b99148
nand_util: correct YAFFS image write function

In function nand_write_skip_bad(),for YAFFS filesystem part,
write_oob() will return 0 when success, so when rval equals 0,
it should continue to write the next page, and no break.

Signed-off-by: Wentao, Liu <wentao.liu@intel.com>
Acked-by: Lei Wen <leiwen@marvell.com>
Signed-off-by: Scott Wood <scott@tyr.buserror.net>
drivers/mtd/nand/nand_util.c