All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] mtd: spi-nor: sfdp: Introduce SFDP_DWORD() macro
@ 2022-12-26  4:01 tkuw584924
  2022-12-26  4:01   ` tkuw584924
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: tkuw584924 @ 2022-12-26  4:01 UTC (permalink / raw)
  To: linux-mtd
  Cc: tudor.ambarus, pratyush, michael, miquel.raynal, richard,
	vigneshr, tkuw584924, Bacem.Daassi, Takahiro Kuwano

From: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>

Existing BFPT_DWORD() converts 1-based indexing to 0-based indexing for
C arrays, and is used in BFPT parse. This is applicable to other parameter
tables than BFPT.

Based on a suggestion in:
https://patchwork.ozlabs.org/project/linux-mtd/patch/20220912051317.2369-1-Takahiro.Kuwano@infineon.com/

Confirmed all parameter tables described in JESD216F.02 use the same
(1-based) indexing.

Tested with S25HS01GT and S28HS01GT.

---
Changes in v2:
  - Add cc: stable to 1/3 patch
  - Add Suggested-by: tag to 2/3 and 3/3 patches
  - Update commit description in 2/3 patch

Takahiro Kuwano (3):
  mtd: spi-nor: sfdp: Fix index value for SCCR dwords
  mtd: spi-nor: sfdp: Rename BFPT_DWORD() macro to SFDP_DWORD()
  mtd: spi-nor: sfdp: Use SFDP_DWORD() macro for optional parameter
    tables

 drivers/mtd/spi-nor/issi.c     |  2 +-
 drivers/mtd/spi-nor/macronix.c |  2 +-
 drivers/mtd/spi-nor/sfdp.c     | 72 ++++++++++++++++++----------------
 drivers/mtd/spi-nor/sfdp.h     |  9 ++---
 4 files changed, 44 insertions(+), 41 deletions(-)

-- 
2.25.1


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

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

end of thread, other threads:[~2022-12-26 14:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-26  4:01 [PATCH v2 0/3] mtd: spi-nor: sfdp: Introduce SFDP_DWORD() macro tkuw584924
2022-12-26  4:01 ` [PATCH v2 1/3] mtd: spi-nor: sfdp: Fix index value for SCCR dwords tkuw584924
2022-12-26  4:01   ` tkuw584924
2022-12-26 14:06   ` Pratyush Yadav
2022-12-26 14:06     ` Pratyush Yadav
2022-12-26  4:01 ` [PATCH v2 2/3] mtd: spi-nor: sfdp: Rename BFPT_DWORD() macro to SFDP_DWORD() tkuw584924
2022-12-26 14:08   ` Pratyush Yadav
2022-12-26  4:02 ` [PATCH v2 3/3] mtd: spi-nor: sfdp: Use SFDP_DWORD() macro for optional parameter tables tkuw584924
2022-12-26 14:09   ` Pratyush Yadav
2022-12-26  8:21 ` [PATCH v2 0/3] mtd: spi-nor: sfdp: Introduce SFDP_DWORD() macro Tudor Ambarus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.