Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Pengji Li" <wjjsn@qq.com>,
	"Miquel Raynal" <miquel.raynal@bootlin.com>,
	linux-mtd@lists.infradead.org
Cc: "Richard Weinberger" <richard@nod.at>,
	"Vignesh Raghavendra" <vigneshr@ti.com>,
	"Daniel Palmer" <daniel@0x0f.com>
Subject: Re: [RFC PATCH] mtd: spinand: support FS35ND01G-S1Y2 with external ECC
Date: Tue, 01 Dec 2026 02:44:35 +0000	[thread overview]
Message-ID: <sashiko-outbox-242390@kernel.org> (raw)
In-Reply-To: <tencent_3C5C30A7964DFBBF3EA5CD0136AB5ECDB20A@qq.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] mtd: spinand: foresee: duplicate write/update cache variants for
  FS35ND01G
--

commit e64d1c9825a2af5d412fa5cb7462af483e0672e1
Author: Pengji Li <wjjsn@qq.com>

mtd: spinand: support FS35ND01G-S1Y2 with external ECC

This commit adds a SPINAND_NO_ON_DIE_ECC flag to reject on-die ECC
initialization when unsupported and adds support for the FORESEE
FS35ND01G-S1Y2 SPI NAND flash using external ECC.

Link: https://lore.kernel.org/linux-mtd/20210811084924.52293-1-daniel@0x0f.com/

> diff --git a/drivers/mtd/nand/spi/foresee.c b/drivers/mtd/nand/spi/foresee.c
> index 5ff18316092cd..90eddade6b47a 100644
> --- a/drivers/mtd/nand/spi/foresee.c
> +++ b/drivers/mtd/nand/spi/foresee.c
> @@ -94,6 +94,21 @@ static int f35sqb002g_ecc_get_status(struct spinand_device *spinand, u8 status)
>  	return -EINVAL;
>  }
>  
> +static SPINAND_OP_VARIANTS(fs35nd01g_read_cache_variants,
> +		SPINAND_PAGE_READ_FROM_CACHE_1S_4S_4S_OP(0, 2, NULL, 0, 0),
> +		SPINAND_PAGE_READ_FROM_CACHE_1S_1S_4S_OP(0, 1, NULL, 0, 0),
> +		SPINAND_PAGE_READ_FROM_CACHE_1S_2S_2S_OP(0, 1, NULL, 0, 0),
> +		SPINAND_PAGE_READ_FROM_CACHE_1S_1S_2S_OP(0, 1, NULL, 0, 0),
> +		SPINAND_PAGE_READ_FROM_CACHE_1S_1S_1S_OP(0, 1, NULL, 0, 0));
> +
> +static SPINAND_OP_VARIANTS(fs35nd01g_write_cache_variants,
> +		SPINAND_PROG_LOAD_1S_1S_4S_OP(true, 0, NULL, 0),
> +		SPINAND_PROG_LOAD_1S_1S_1S_OP(true, 0, NULL, 0));
> +
> +static SPINAND_OP_VARIANTS(fs35nd01g_update_cache_variants,
> +		SPINAND_PROG_LOAD_1S_1S_4S_OP(false, 0, NULL, 0),
> +		SPINAND_PROG_LOAD_1S_1S_1S_OP(false, 0, NULL, 0));

[Severity: Low]
This isn't a bug, but fs35nd01g_write_cache_variants and
fs35nd01g_update_cache_variants are identical to write_cache_variants and
update_cache_variants already defined at the top of this file.  Could the
FS35ND01G-S1Y2 entry reuse write_cache_variants and update_cache_variants
directly?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/tencent_3C5C30A7964DFBBF3EA5CD0136AB5ECDB20A@qq.com?part=1

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

      reply	other threads:[~2026-12-01  2:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  2:30 [RFC PATCH] mtd: spinand: support FS35ND01G-S1Y2 with external ECC Pengji Li
2026-12-01  2:44 ` sashiko-bot [this message]

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=sashiko-outbox-242390@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=daniel@0x0f.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard@nod.at \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vigneshr@ti.com \
    --cc=wjjsn@qq.com \
    /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