From: Dominique Martinet <dominique.martinet@atmark-techno.com>
To: Md Sadre Alam <md.alam@oss.qualcomm.com>
Cc: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com,
tudor.ambarus@linaro.org, s-k6@ti.com,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
varadarajan.narayanan@oss.qualcomm.com
Subject: Re: [PATCH 1/2] mtd: spinand: winbond: add support for W25N04LW
Date: Wed, 12 Aug 2026 08:23:33 +0900 [thread overview]
Message-ID: <anuu9USjU4GXBMC3@atmark-techno.com> (raw)
In-Reply-To: <ansYUoNKJyDQ+6f2@hu-mdalam-blr.qualcomm.com>
Md Sadre Alam wrote on Tue, Aug 11, 2026 at 06:10:50PM +0530:
> > I agree with Miquèl that your patch looks odd, you wrote
> > > + NAND_MEMORG(1, 4096, 128, 64, 2048, 40, 1, 1, 1),
> > but the erase blocks are 256K long so it should be
> > + NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
(I misremembered NAND_MEMORG() fields, the 256 is indeed the OOB area
size as you pointed out; the erase blocks were already correct at 64
pages = 256KB so while the settings were wrong this might actually not
be visible at all in quick testing; sorry)
> > FWIW, I've confirmed it works with the following diff (at least up to
> > the point of creating an ubi volume and booting from it); happy to send
> > this as a patch if this has indeed not been tested
>
> This device was supported in our downstream tree and was tested there. I
> picked that patch and posted it upstream assuming the configuration was
> already correct.
> The `128` in:
> NAND_MEMORG(1, 4096, 128, 64, 2048, 40, 1, 1, 1)
> was my mistake. It should indeed be `256`, matching the 4096 + 256 page
> layout in the W25N04LW datasheet.
> Please go ahead and post your tested patch. I do not currently have this
> device available to retest the upstream version.
Ok, let me do some slightly more thorough checks and clean up a bit and
I'll send a v2 later this week/early next week
The continuous read feature also definitely is interesting to me and
I'll be testing it later, but it's "just" a performance improvement so
I'll be taking a bit longer; I'll come back with either a patch or
questions hopefully by next month ish
Thanks,
--
Dominique
next prev parent reply other threads:[~2026-08-11 23:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-07 6:43 [PATCH 0/2] mtd: spinand: winbond: add support for additional SPI-NAND devices Md Sadre Alam
2026-08-07 6:43 ` [PATCH 1/2] mtd: spinand: winbond: add support for W25N04LW Md Sadre Alam
2026-08-07 13:52 ` Miquel Raynal
2026-08-10 8:28 ` Dominique MARTINET
2026-08-10 12:43 ` Miquel Raynal
2026-08-11 12:48 ` Md Sadre Alam
2026-08-11 12:40 ` Md Sadre Alam
2026-08-11 23:23 ` Dominique Martinet [this message]
2026-08-07 6:43 ` [PATCH 2/2] mtd: spinand: winbond: add support for W25N01KW and W25N02LW Md Sadre Alam
2026-08-07 13:50 ` Miquel Raynal
2026-08-11 12:57 ` Md Sadre Alam
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=anuu9USjU4GXBMC3@atmark-techno.com \
--to=dominique.martinet@atmark-techno.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=md.alam@oss.qualcomm.com \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=s-k6@ti.com \
--cc=tudor.ambarus@linaro.org \
--cc=varadarajan.narayanan@oss.qualcomm.com \
--cc=vigneshr@ti.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