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: [PATCH] mtd: spinand: foresee: Add support for FS35ND01G-S1Y2
Date: Sun, 06 Dec 2026 02:13:07 +0000 [thread overview]
Message-ID: <sashiko-outbox-252051@kernel.org> (raw)
In-Reply-To: <tencent_1C2EB0529BA7F35EC3D29801F15479667909@qq.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] mtd: spinand: foresee: missing fast 1S-1S-1S read cache op
for FS35ND01G-S1Y2
--
commit 268eb3b01482d49ce51c6bba9569c3e029dd2438
Author: Pengji Li <wjjsn@qq.com>
mtd: spinand: foresee: Add support for FS35ND01G-S1Y2
This commit adds SPI-NAND support for the FORESEE FS35ND01G-S1Y2 flash
chip with its geometry, ECC configuration, and read cache op variants.
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..f323f5c9836c0 100644
> --- a/drivers/mtd/nand/spi/foresee.c
> +++ b/drivers/mtd/nand/spi/foresee.c
> @@ -94,6 +94,13 @@ 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));
> +
[Severity: Medium]
Should fs35nd01g_read_cache_variants include
SPINAND_PAGE_READ_FROM_CACHE_FAST_1S_1S_1S_OP(0, 1, NULL, 0, 0) before
SPINAND_PAGE_READ_FROM_CACHE_1S_1S_1S_OP?
Unlike read_cache_variants in this file and the other SPI-NAND drivers,
omitting opcode 0x0b forces 1-bit SPI buses to select opcode 0x03 in
spinand_select_op_variant().
On controllers such as spi-qpic-snand, qcom_spi_supports_op() accepts
0x03 during probe, but qcom_spi_read_page() -> qcom_spi_cmd_mapping()
only maps 0x0b for 1-bit cache reads and fails page reads with
-EOPNOTSUPP.
--
Sashiko AI review · https://sashiko.dev/#/patchset/tencent_1C2EB0529BA7F35EC3D29801F15479667909@qq.com?part=1
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2026-12-06 2:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-06 1:56 [PATCH] mtd: spinand: foresee: Add support for FS35ND01G-S1Y2 Pengji Li
2026-12-06 2:13 ` sashiko-bot [this message]
2026-12-06 2:23 ` Daniel Palmer
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-252051@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