[PATCH] mtd: spi-nor: micron-st: fix FSR read fallback for controllers returning -ENOTSUPP

Tudor Ambarus tudor.ambarus at linaro.org
Wed Mar 18 06:26:28 PDT 2026


Hi, Bean!

On 3/18/26 3:18 PM, Bean Huo wrote:
> From: Bean Huo <beanhuo at micron.com>
> 
> micron_st_nor_ready() falls back to SR-only polling when the SPI
> controller does not support low-level FSR reads, but only checks for
> -EOPNOTSUPP (95).  Some SPI master drivers return the kernel-internal
> -ENOTSUPP (524) for the same condition.  The two codes carry identical

Isn't it a better fix to update the spi controllers to use EOPNOTSUPP?



More information about the linux-mtd mailing list