[PATCH RFC v2 02/35] spi: spi-mem: Fix the odd byte count error message
Miquel Raynal
miquel.raynal at bootlin.com
Fri Nov 27 06:22:24 PST 2026
The check rejects odd byte counts but the error message claims that
even byte numbers are not allowed. Fix the wording.
Fixes: 8618271887ca ("spi: spi-mem: Limit octal DTR constraints to octal DTR situations")
Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
---
drivers/spi/spi-mem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi-mem.c
index 648982350863..f4d71f740163 100644
--- a/drivers/spi/spi-mem.c
+++ b/drivers/spi/spi-mem.c
@@ -188,7 +188,7 @@ bool spi_mem_default_supports_op(struct spi_mem *mem,
(op->dummy.nbytes % 2) ||
(op->data.nbytes % 2)) {
dev_err(&ctlr->dev,
- "Even byte numbers not allowed in octal DTR operations\n");
+ "Odd byte numbers not allowed in octal DTR operations\n");
return false;
}
}
--
2.56.0
More information about the linux-riscv
mailing list