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

From: Tudor Ambarus

Date: Wed Mar 18 2026 - 09:26:39 EST


Hi, Bean!

On 3/18/26 3:18 PM, Bean Huo wrote:
> From: Bean Huo <beanhuo@xxxxxxxxxx>
>
> 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?