ramips: correct page read return value of the mt7621 nand driver
authorShiji Yang <yangshiji66@qq.com>
Sun, 21 May 2023 14:51:16 +0000 (22:51 +0800)
committerChristian Lamparter <chunkeey@gmail.com>
Mon, 22 May 2023 12:45:03 +0000 (14:45 +0200)
commit2fbb91d73ffecc7d033e5bb0b550d664ef9e0f91
tree5ef33059906a0d854754c769a46086823dff8565
parent959563fb813890e478bf0a51523cd84d54b9af91
ramips: correct page read return value of the mt7621 nand driver

read_page() need to return maximum number of bitflips instead of the
accumulated number. Change takes from upstream mt7621 u-boot [1].

 * @read_page:  function to read a page according to the ECC generator
 *              requirements; returns maximum number of bitflips
 *              corrected in any single ECC step, -EIO hw error

[1] https://lore.kernel.org/all/cover.1653015383.git.weijie.gao@mediatek.com/

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c