[PATCH] mtd: spi-nor: micron-st: Skip FSR reading if SPI controller does not support it

Michael Walle michael at walle.cc
Mon May 9 00:12:17 PDT 2022


Am 2022-05-06 12:51, schrieb Mika Westerberg:
> The Intel SPI controller does not support low level operations, like
> reading the flag status register (FSR). It only exposes a set of high
> level operations for software to use. For this reason check the return
> value of micron_st_nor_read_fsr() and if the operation was not
> supported, use the status register value only. This allows the chip to
> work even when attached to Intel SPI controller (there are such systems
> out there).
> 
> Signed-off-by: Mika Westerberg <mika.westerberg at linux.intel.com>

Reviewed-by: Michael Walle <michael at walle.cc>

-michael



More information about the linux-mtd mailing list