U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: Richard Genoud <richard.genoud@bootlin.com>
Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>,
	Michael Trimarchi <michael@amarulasolutions.com>,
	Tom Rini <trini@konsulko.com>,
	Andrew Goodbody <andrew.goodbody@linaro.org>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	James Hilliard <james.hilliard1@gmail.com>,
	Boris Brezillon <bbrezillon@kernel.org>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	u-boot@lists.denx.de
Subject: Re: [PATCH v2 5/5] mtd: nand: raw: sunxi_spl: remove user data length reset
Date: Fri, 1 May 2026 14:47:44 +0200	[thread overview]
Message-ID: <20260501144744.1d767d13@ryzen.lan> (raw)
In-Reply-To: <20260327140508.3680105-6-richard.genoud@bootlin.com>

On Fri, 27 Mar 2026 15:05:08 +0100
Richard Genoud <richard.genoud@bootlin.com> wrote:

> No need to reset user data length registers in SPL.
> 
> In SPL, only the first user data length register is used, so we don't
> need to reset all of them.
> 
> Signed-off-by: Richard Genoud <richard.genoud@bootlin.com>

Acked-by: Andre Przywara <andre.przywara@arm.com>

Cheers,
Andre

> ---
>  drivers/mtd/nand/raw/sunxi_nand_spl.c | 17 -----------------
>  1 file changed, 17 deletions(-)
> 
> diff --git a/drivers/mtd/nand/raw/sunxi_nand_spl.c b/drivers/mtd/nand/raw/sunxi_nand_spl.c
> index 784ffb00cf70..cf351de4e8de 100644
> --- a/drivers/mtd/nand/raw/sunxi_nand_spl.c
> +++ b/drivers/mtd/nand/raw/sunxi_nand_spl.c
> @@ -224,22 +224,6 @@ static int nand_change_column(u16 column)
>  	return 0;
>  }
>  
> -/*
> - * On H6/H616 the user_data length has to be set in specific registers
> - * before writing.
> - */
> -static void sunxi_nfc_reset_user_data_len(const struct nfc_config *nfc)
> -{
> -	int loop_step = NFC_REG_USER_DATA_LEN_CAPACITY;
> -
> -	/* not all SoCs have this register */
> -	if (!NFC_REG_USER_DATA_LEN(nfc, 0))
> -		return;
> -
> -	for (int i = 0; i < nfc->caps->max_ecc_steps; i += loop_step)
> -		writel_nfc(0, NFC_REG_USER_DATA_LEN(nfc, i));
> -}
> -
>  static void sunxi_nfc_set_user_data_len(const struct nfc_config *nfc,
>  					int len, int step)
>  {
> @@ -355,7 +339,6 @@ static int nand_read_page(const struct nfc_config *conf, u32 offs,
>  		 */
>  		nand_change_column(oob_off);
>  
> -		sunxi_nfc_reset_user_data_len(conf);
>  		sunxi_nfc_set_user_data_len(conf, user_data_sz, nfc_step);
>  
>  		nand_exec_cmd(NFC_DATA_TRANS | NFC_ECC_OP);


  reply	other threads:[~2026-05-01 12:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-27 14:05 [PATCH v2 0/5] mtd: rawnand: sunxi: Fix user data length for H6 Richard Genoud
2026-03-27 14:05 ` [PATCH v2 1/5] mtd: rawnand: sunxi: Replace hard coded value by a define Richard Genoud
2026-04-27 11:14   ` Andre Przywara
2026-03-27 14:05 ` [PATCH v2 2/5] mtd: rawnand: sunxi: make the code mode self-explanatory Richard Genoud
2026-03-27 14:40   ` Michael Nazzareno Trimarchi
2026-04-27 12:23   ` Andre Przywara
2026-03-27 14:05 ` [PATCH v2 3/5] mtd: rawnand: sunxi: clean sunxi_nand_chip_init() Richard Genoud
2026-03-27 14:42   ` Michael Nazzareno Trimarchi
2026-04-27 12:35     ` Andre Przywara
2026-05-01 12:59       ` Andre Przywara
2026-03-27 14:05 ` [PATCH v2 4/5] mtd: rawnand: sunxi: introduce variable user data length Richard Genoud
2026-05-01 12:46   ` Andre Przywara
2026-03-27 14:05 ` [PATCH v2 5/5] mtd: nand: raw: sunxi_spl: remove user data length reset Richard Genoud
2026-05-01 12:47   ` Andre Przywara [this message]
2026-04-27 12:28 ` [PATCH v2 0/5] mtd: rawnand: sunxi: Fix user data length for H6 Andre Przywara
2026-04-27 12:31   ` Michael Nazzareno Trimarchi
2026-04-27 13:47     ` Andre Przywara
2026-04-27 14:10       ` Michael Nazzareno Trimarchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260501144744.1d767d13@ryzen.lan \
    --to=andre.przywara@arm.com \
    --cc=andrew.goodbody@linaro.org \
    --cc=bbrezillon@kernel.org \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=james.hilliard1@gmail.com \
    --cc=michael@amarulasolutions.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard.genoud@bootlin.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox