[PATCH RFC v2 02/35] spi: spi-mem: Fix the odd byte count error message

Bough Chen haibo.chen at oss.nxp.com
Mon Nov 30 02:13:52 PST 2026


On Fri, Nov 27, 2026 at 03:22:24PM +0100, Miquel Raynal wrote:
> 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>

Reviewed-by: Haibo Chen <haibo.chen at nxp.com>

Regards
Haibo Chen
> ---
>  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-arm-kernel mailing list