New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[22.03] ramips: correct page read return value of the mt7621 nand driver #12698
Conversation
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> (cherry picked from commit 2fbb91d)
Hi @PiotrX1, I would like to backport @DragonBluep's fix to the last release branch :) You need to reset your config on install, when downgrading. (sysupgrade -n)
I'll mention you here, when that build's ready. |
@Djfe installed by sysupgrade and it works fine |
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>
awesome! 👌 |
thank you 👍 |
Sure, just give me files and I will check. |
I meant @chunkeey |
;) |
read_page() need to return maximum number of bitflips instead of the accumulated number. Change takes from upstream mt7621 u-boot [1].
[1] https://lore.kernel.org/all/cover.1653015383.git.weijie.gao@mediatek.com/
Signed-off-by: Shiji Yang yangshiji66@qq.com
(cherry picked from commit 2fbb91d)
We need this to prevent devices in the 22 release from running into bootloops when badblocks occur in the ubi partition.
Affected are atleast Asus RT-AX53U and RT-AX54.
This remains a draft, until I or @Znevna find the time for testing :)EDIT:
I run-tested the patch successfully on my RT-AX53U.
But since my device doesn't have any bad blocks, I want to wait for Piotr's feedback :)This was confirmed to be fixing the described issue by Piotr. This is ready to be reviewed and merged now