[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
<DU0PR04MB9496760AE1881329E33F0B7F909EA@DU0PR04MB9496.eurprd04.prod.outlook.com>
Date: Thu, 29 Jan 2026 01:56:40 +0000
From: Bough Chen <haibo.chen@....com>
To: Tudor Ambarus <tudor.ambarus@...aro.org>, Pratyush Yadav
<pratyush@...nel.org>, Michael Walle <mwalle@...nel.org>, Miquel Raynal
<miquel.raynal@...tlin.com>, Richard Weinberger <richard@....at>, Vignesh
Raghavendra <vigneshr@...com>
CC: Pratyush Yadav <p.yadav@...com>, "linux-mtd@...ts.infradead.org"
<linux-mtd@...ts.infradead.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, "imx@...ts.linux.dev" <imx@...ts.linux.dev>
Subject: RE: [PATCH] mtd: spi-nor: core: correct the op.dummy.nbytes when
check read operations
Gentle ping...
> -----Original Message-----
> From: Bough Chen <haibo.chen@....com>
> Sent: 2025年12月8日 17:14
> To: Tudor Ambarus <tudor.ambarus@...aro.org>; Pratyush Yadav
> <pratyush@...nel.org>; Michael Walle <mwalle@...nel.org>; Miquel Raynal
> <miquel.raynal@...tlin.com>; Richard Weinberger <richard@....at>; Vignesh
> Raghavendra <vigneshr@...com>
> Cc: Pratyush Yadav <p.yadav@...com>; linux-mtd@...ts.infradead.org;
> linux-kernel@...r.kernel.org; imx@...ts.linux.dev; Bough Chen
> <haibo.chen@....com>
> Subject: [PATCH] mtd: spi-nor: core: correct the op.dummy.nbytes when check
> read operations
>
> When check read operation, need to setting the op.dummy.nbytes based on
> current read operation rather than the nor->read_proto.
>
> Fixes: 0e30f47232ab ("mtd: spi-nor: add support for DTR protocol")
> Signed-off-by: Haibo Chen <haibo.chen@....com>
> ---
> drivers/mtd/spi-nor/core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index
> d3f8a78efd3bf9032b807e81b7a8b77556367e71..09312300108e4ac4307934a9
> 83e74a5510f3e844 100644
> --- a/drivers/mtd/spi-nor/core.c
> +++ b/drivers/mtd/spi-nor/core.c
> @@ -2393,7 +2393,7 @@ static int spi_nor_spimem_check_readop(struct
> spi_nor *nor,
> /* convert the dummy cycles to the number of bytes */
> op.dummy.nbytes = (read->num_mode_clocks + read->num_wait_states) *
> op.dummy.buswidth / 8;
> - if (spi_nor_protocol_is_dtr(nor->read_proto))
> + if (spi_nor_protocol_is_dtr(read->proto))
> op.dummy.nbytes *= 2;
>
> return spi_nor_spimem_check_op(nor, &op);
>
> ---
> base-commit: 82bcd04d124a4d84580ea4a8ba6b120db5f512e7
> change-id: 20251208-spi-nor-5f4dd001f7e1
>
> Best regards,
> --
> Haibo Chen <haibo.chen@....com>
Powered by blists - more mailing lists