[PATCH 2/2] mtd: spi-nor: Rename spi_nor_spimem_check_op()

Miquel Raynal miquel.raynal at bootlin.com
Tue Mar 17 02:33:43 PDT 2026


>> -static int spi_nor_spimem_check_op(struct spi_nor *nor,
>> -				   struct spi_mem_op *op)
>> +static int spi_nor_spimem_check_page_op(struct spi_nor *nor,
>> +					struct spi_mem_op *op)
>
> page is a bit misleading as it can indicate it's used just for page
> programs. We need to focus on operations that need address bytes,
> reads, pp, page scrub, erase, write/read any register, etc.

This helper is only used for reads and page programs. The point is
to not use it when reading/writing registers.

What about spi_nor_spimem_check_io_op() ? or _iorw_op() ?

Thanks,
Miquèl



More information about the linux-mtd mailing list