[PATCH v5 1/2] spi: Replace -ENOTSUPP with -EOPNOTSUPP in op checking
Mika Westerberg
mika.westerberg at linux.intel.com
Thu Nov 9 21:37:21 PST 2023
Hi,
On Wed, Nov 08, 2023 at 05:43:02PM +0800, AceLan Kao wrote:
> From: "Chia-Lin Kao (AceLan)" <acelan.kao at canonical.com>
>
> No functional changes are introduced by this patch; it's a code cleanup
> to use the correct error code.
Probably good to mention here that this affect only the "SPI MEM"
drivers and the core parts. Also you could explain here that the reaosn
for this is to make sure we use unified "operation not supported" return
code accross these.
Does some kernel-doc need updating as well to make sure the future
drivers will return the correct one if they do not support given
optional operations?
> Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao at canonical.com>
>
> ---
> v5. distinguish -EOPNOTSUPP from -ENOTSUPP
> ---
> drivers/mtd/nand/spi/core.c | 2 +-
> drivers/spi/atmel-quadspi.c | 2 +-
> drivers/spi/spi-ath79.c | 2 +-
> drivers/spi/spi-bcm-qspi.c | 2 +-
> drivers/spi/spi-mem.c | 6 +++---
> drivers/spi/spi-npcm-fiu.c | 2 +-
> drivers/spi/spi-ti-qspi.c | 4 ++--
> drivers/spi/spi-wpcm-fiu.c | 2 +-
I think you should include the SPI subsystem maintainer as well, at
least for visibility.
More information about the linux-mtd
mailing list