Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Paul Cercueil <paul.cercueil@bootlin.com>
Cc: "Pratyush Yadav" <pratyush@kernel.org>,
	"Michael Walle" <mwalle@kernel.org>,
	"Takahiro Kuwano" <takahiro.kuwano@infineon.com>,
	"Richard Weinberger" <richard@nod.at>,
	"Vignesh Raghavendra" <vigneshr@ti.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	linux-mtd@lists.infradead.org,
	"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
Subject: Re: [PATCH] mtd: spi-nor: Ignore octal PP bits on < JESD216F
Date: Thu, 03 Dec 2026 12:43:03 +0100	[thread overview]
Message-ID: <874icuio8o.fsf@bootlin.com> (raw)
In-Reply-To: <20261203111545.55678-1-paul.cercueil@bootlin.com> (Paul Cercueil's message of "Thu, 3 Dec 2026 12:15:45 +0100")

On 03/12/2026 at 12:15:45 +01, Paul Cercueil <paul.cercueil@bootlin.com> wrote:

> Octal page program support was added in JESD216F. Before that, the bits
> were marked as reserved. Some chips like the Winbond W25Q256JW have some
> of these bits set, which caused octal PP support to be incorrectly
> detected.
>
> Signed-off-by: Paul Cercueil <paul.cercueil@bootlin.com>
> ---

While I agree this is a much better patch than the previous one, could
we just skip octal PP setting if SFDP version is incorrect, rather than
going through the parsing and then dropping the bits?

If we aver add more parsing, it would also need to be cancelled with
this approach, which is error prone.

I don't know how easy that would be to do, but I believe it would be
preferable to just skip the parsing.

Miquèl

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

      parent reply	other threads:[~2026-12-03 11:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 11:15 [PATCH] mtd: spi-nor: Ignore octal PP bits on < JESD216F Paul Cercueil
2026-12-03 11:42 ` sashiko-bot
2026-12-03 11:43 ` Miquel Raynal [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=874icuio8o.fsf@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=mwalle@kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=paul.cercueil@bootlin.com \
    --cc=pratyush@kernel.org \
    --cc=richard@nod.at \
    --cc=takahiro.kuwano@infineon.com \
    --cc=thomas.petazzoni@bootlin.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