[PATCH v4 0/4] mtd: spi-nor: core: set mtd->eraseregions for non-uniform erase map

Tudor Ambarus tudor.ambarus at linaro.org
Mon Feb 26 01:02:39 PST 2024


Takahiro, which base did you use for the patch set? It does not apply
cleanly on spi_nor/next (v6.8-rc1), neither on spi-nor/for-6.8.

Please rebase and resubmit.

On 20.02.2024 10:34, tkuw584924 at gmail.com wrote:
> From: Takahiro Kuwano <Takahiro.Kuwano at infineon.com>
> 
> In v4, split two flags removement into separated patches. Reworked
> spi_nor_init_erase_cmd() to use n_regions in outer loop.
> 
> In v3, reworked to remove LAST_REGION and OVERLAID_REGION flags. Updated
> and tested debugfs.
> 
> In v2, reworked spi_nor_erase_region to stop bitmask encoding in offset.
> And added n_regions member to spi_nor_erase_map.
> 
> Takahiro Kuwano (4):
>   mtd: spi-nor: core: rework struct spi_nor_erase_region
>   mtd: spi-nor: core: get rid of SNOR_LAST_REGION flag
>   mtd: spi-nor: core: get rid of SNOR_OVERLAID_REGION flag
>   mtd: spi-nor: core: set mtd->eraseregions for non-uniform erase map
> 
>  drivers/mtd/spi-nor/core.c    | 187 +++++++++++++++++-----------------
>  drivers/mtd/spi-nor/core.h    |  30 ++----
>  drivers/mtd/spi-nor/debugfs.c |  26 +++--
>  drivers/mtd/spi-nor/sfdp.c    |  47 +++------
>  4 files changed, 128 insertions(+), 162 deletions(-)
> 



More information about the linux-mtd mailing list