mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Maarten Zanders <maarten@zanders.be>
To: Tudor Ambarus <tudor.ambarus@linaro.org>,
	Pratyush Yadav <pratyush@kernel.org>,
	Michael Walle <mwalle@kernel.org>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Boris Brezillon <bbrezillon@kernel.org>
Cc: Maarten Zanders <maarten@zanders.be>,
	linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] handle RDCR opcode for Macronix
Date: Mon, 22 Sep 2025 17:56:31 +0200	[thread overview]
Message-ID: <20250922155635.749975-1-maarten@zanders.be> (raw)

This series introduces a configurable RDCR (Read Configuration Register)
opcode for spi-nor flashes and applies a fix for Macronix devices.

Patch 1 adds a new flash parameter to hold the RDCR opcode, defaulting
to 0x35 (JEDEC standard).

Patch 2 applies a Macronix-specific fixup, setting the RDCR opcode to
0x15.

Signed-off-by: Maarten Zanders <maarten@zanders.be>

Maarten Zanders (2):
  mtd: spi-nor: add configurable RDCR opcode
  mtd: spi-nor: macronix: use RDCR opcode 0x15

 drivers/mtd/spi-nor/core.c     | 12 +++++++++---
 drivers/mtd/spi-nor/core.h     |  6 ++++--
 drivers/mtd/spi-nor/macronix.c |  1 +
 include/linux/mtd/spi-nor.h    |  3 +++
 4 files changed, 17 insertions(+), 5 deletions(-)


base-commit: 4550d33e18112a11a740424c4eec063cd58e918c
-- 
2.51.0


             reply	other threads:[~2025-09-22 15:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-22 15:56 Maarten Zanders [this message]
2025-09-22 15:56 ` [PATCH 1/2] mtd: spi-nor: add configurable RDCR opcode Maarten Zanders
2025-09-22 15:56 ` [PATCH 2/2] mtd: spi-nor: macronix: use RDCR opcode 0x15 Maarten Zanders
2025-09-23 14:14   ` Michael Walle
2025-09-24  9:00     ` Maarten Zanders
2025-09-24 11:57       ` Michael Walle

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=20250922155635.749975-1-maarten@zanders.be \
    --to=maarten@zanders.be \
    --cc=bbrezillon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=mwalle@kernel.org \
    --cc=pratyush@kernel.org \
    --cc=richard@nod.at \
    --cc=tudor.ambarus@linaro.org \
    --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

all inboxes | Powered by JetHome®