[][OpenWrt Dev][Suppress meanless bitflip correction log of mtk-snand driver]

Fix mtk-snand driver that prints meanless bitflip correction log in mt7986

Due to design change of SNFI in mt7986, the HW will no longer treate full
0xff page (empty page) as ecc-corrected. Instead, the HW will report ecc
error for these pages, and will result in empty page bitflip detection
mechanism being applied for these pages.

Since these pages have no bitflip, the mechanism will report 0 bitflip
corrected, which is totally meanless. So this patch change the mechanism
to report bitflips only when there is actually bitflip detected.


Change-Id: I7c5dd5f7910501d6a4af1a469df27997d3fe6c00
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/4559029
1 file changed