[PATCH] mtd: nand: raw: mt7621-nand: allow writing ecc region in raw mode
Michael Nazzareno Trimarchi
michael at amarulasolutions.com
Wed Mar 13 07:41:08 CET 2024
Hi
On Wed, Mar 13, 2024 at 4:38 AM Weijie Gao <weijie.gao at mediatek.com> wrote:
>
> Allow writing ecc parity region in raw mode. This makes sure the
> nand write.raw command can write the flash data as-is.
>
> Change-Id: Ibed3bdf13c9cf81e54041c5ac7a78192b97dcedc
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
> CR-Id: WCNCR00180092
I think this is for internal tracking
> ---
> drivers/mtd/nand/raw/mt7621_nand.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/mtd/nand/raw/mt7621_nand.c b/drivers/mtd/nand/raw/mt7621_nand.c
> index f6eddb84a9..341ef0bf2d 100644
> --- a/drivers/mtd/nand/raw/mt7621_nand.c
> +++ b/drivers/mtd/nand/raw/mt7621_nand.c
> @@ -1003,9 +1003,9 @@ static int mt7621_nfc_write_page_raw(struct mtd_info *mtd,
> mt7621_nfc_write_data(nfc, oob_fdm_ptr(nand, i),
> NFI_FDM_SIZE);
>
> - /* Write dummy ECC parity data */
> - mt7621_nfc_write_data_empty(nfc, nfc->spare_per_sector -
> - NFI_FDM_SIZE);
> + /* Write ECC parity data */
> + mt7621_nfc_write_data(nfc, oob_ecc_ptr(nfc, i),
> + nfc->spare_per_sector - NFI_FDM_SIZE);
> }
>
Please describe better what regression you are trying to fix in the
commit message
Reviewed-by: Michael Trimarchi <michael at amarulasolutions.com>
Michael
> mt7621_nfc_wait_write_completion(nfc, nand);
> --
> 2.34.1
>
--
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael at amarulasolutions.com
__________________________________
Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info at amarulasolutions.com
www.amarulasolutions.com
More information about the U-Boot
mailing list