public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mtd: spi-nor: winbond: Add support for flashes with several dies
@ 2025-01-09 20:17 Miquel Raynal
  2025-01-09 20:17 ` [PATCH v2 1/2] mtd: spi-nor: winbond: Add support for w25q01jv Miquel Raynal
  2025-01-09 20:17 ` [PATCH v2 2/2] mtd: spi-nor: winbond: Add support for w25q02jv Miquel Raynal
  0 siblings, 2 replies; 5+ messages in thread
From: Miquel Raynal @ 2025-01-09 20:17 UTC (permalink / raw)
  To: Tudor Ambarus, Pratyush Yadav, Michael Walle, Miquel Raynal,
	Richard Weinberger, Vignesh Raghavendra
  Cc: Thomas Petazzoni, Steam Lin, linux-mtd, linux-kernel

Some Winbond devices are made of up smaller stacked dies, like for
instance W25Q01JV which is a 1G-bit serial flash memory made of two
512M-bit dies, and W25Q02JV which is made of four of them. Internally,
the dies can either be in the active state (only one at a time), the
others being in the idle state. Problem: there are commands impacting
all 4 dies, for which we monitor the state of the chip reading the
status register, but the status register only gives the status of the
active die. It was observed a possible internal deviation of up to 200us
between each die when doing similar operations, which can lead to
races. This series aims at supporting these chips properly.

---
Changes in v2:
- Rewrote the commit log to clarify the three alternatives.
- Changed the fixup hook to use the post sfdp hook.
- Added a comment explaining what is the use case for the (multi)die
  select function.
- Fixed the return value of the ->ready() hook to include error codes.
- Renamed the helpers with the winbond_nor_ prefix as many chips with
  totally different names are impacted.
- Moved the assignment of the alternate ->ready() hook to the the
  per-flash post sfdp fixup hook.
- Dropped the no_sfdp_flags redundant information.
- Dropped the flash names from the table (but kept them as comments).
- Link to v1: https://lore.kernel.org/r/20241224-winbond-6-12-rc1-nor-volatile-bit-v1-0-f7c4dff66182@bootlin.com

---
Miquel Raynal (2):
      mtd: spi-nor: winbond: Add support for w25q01jv
      mtd: spi-nor: winbond: Add support for w25q02jv

 drivers/mtd/spi-nor/winbond.c | 88 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 88 insertions(+)
---
base-commit: cfb48994051444aa6b620e48898f95ea91d193c5
change-id: 20241223-winbond-6-12-rc1-nor-volatile-bit-ffa03c566b92

Best regards,
-- 
Miquel Raynal <miquel.raynal@bootlin.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-01-10 14:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-09 20:17 [PATCH v2 0/2] mtd: spi-nor: winbond: Add support for flashes with several dies Miquel Raynal
2025-01-09 20:17 ` [PATCH v2 1/2] mtd: spi-nor: winbond: Add support for w25q01jv Miquel Raynal
2025-01-09 20:17 ` [PATCH v2 2/2] mtd: spi-nor: winbond: Add support for w25q02jv Miquel Raynal
2025-01-09 20:23   ` Christophe JAILLET
2025-01-10 14:46     ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox