diff options
author | Chia-Lin Kao (AceLan) <[email protected]> | 2023-11-29 14:43:11 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-11-30 12:12:40 +0000 |
commit | 7a030abc0185b30a3fd19a7431347c6f5a82c588 (patch) | |
tree | 32b135e8e43e22ff601ec582ca0e71742fdeff9f | |
parent | cff49d58f57e5667c10a0db85d7461790bb85cf8 (diff) |
mtd: spi-nor: Stop reporting warning message when soft reset is not suported
When the software reset command isn't supported, we now stop reporting
the warning message to avoid unnecessary warnings and potential confusion.
Reviewed-by: Dhruva Gole <[email protected]>
Reviewed-by: Michael Walle <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Acked-by: Pratyush Yadav <[email protected]>
Signed-off-by: "Chia-Lin Kao (AceLan)" <[email protected]>
Reviewed-by: Miquel Raynal <[email protected]>
Acked-by: Tudor Ambarus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | drivers/mtd/spi-nor/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 87cb2047df80..96a207751cf2 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -3237,7 +3237,8 @@ static void spi_nor_soft_reset(struct spi_nor *nor) ret = spi_mem_exec_op(nor->spimem, &op); if (ret) { - dev_warn(nor->dev, "Software reset failed: %d\n", ret); + if (ret != -EOPNOTSUPP) + dev_warn(nor->dev, "Software reset failed: %d\n", ret); return; } |