kernel: mtk_bmt: fix block copying on remap with bmt v2
authorFelix Fietkau <nbd@nbd.name>
Wed, 9 Mar 2022 15:04:39 +0000 (16:04 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 10 Oct 2022 10:58:22 +0000 (12:58 +0200)
commita78fd5bbb62bdb20d075b7ab42d3f09ca465d550
treea7f40de062c82ec5ca34485210522dcf23c077fe
parent0c21f06ef7544d7492537369b5c4c1ae3b87c935
kernel: mtk_bmt: fix block copying on remap with bmt v2

Copy from the previously mapped block (in case it was remapped already)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 7d1e2be1605eda85e1a607a3d3ddefed1b961d3d)
target/linux/generic/files/drivers/mtd/nand/mtk_bmt_v2.c