mtd: nand: fix false ecc report on infopage
authorYonghui Yu <yonghui.yu@amlogic.com>
Thu, 20 Jul 2017 14:38:16 +0000 (22:38 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 3 Aug 2017 06:15:41 +0000 (23:15 -0700)
commitb5e6195c5eb76209084a56e6d903022601f09151
tree204555b75ff6e82fed3e34e93b437fd842773324
parented157e73ad5c15800507b79a4fbf593e7ae71bfb
mtd: nand: fix false ecc report on infopage

PD#147956: mtd: nand: fix false ecc report on infopage

Infopage must be programed with scrambled to fit romboot.
And all “0xff” page will be reported as uncorrectable falsely
with scramber on.
we have to exclude this by counting the zero byts.

Change-Id: I167491bee69444f64231a09e41d04bcd03f30d65
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
drivers/amlogic/mtd/boot.c