[PATCH 0/3] mtd: spi-nor: sfdp: Introduce SFDP_DWORD() macro
Tudor Ambarus
tudor.ambarus at linaro.org
Thu Dec 22 23:31:57 PST 2022
Thanks for working on this, Takahiro!
On 23.12.2022 09:21, tkuw584924 at gmail.com wrote:
> From: Takahiro Kuwano <Takahiro.Kuwano at 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/
Feel free to add the Suggestion-by tag, it will split responsibility and
also give some credit.
>
> Confirmed all parameter tables described in JESD216F.02 use the same
> (1-based) indexing.
>
> Tested with S25HS01GT and S28HS01GT.
>
Cool!
> 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(-)
>
More information about the linux-mtd
mailing list