]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: spi-nor: core: correct the op.dummy.nbytes when check read operations
authorHaibo Chen <haibo.chen@nxp.com>
Mon, 8 Dec 2025 09:14:14 +0000 (17:14 +0800)
committerPratyush Yadav (Google) <pratyush@kernel.org>
Fri, 13 Mar 2026 10:28:17 +0000 (10:28 +0000)
commit756564a536ecd8c9d33edd89f0647a91a0b03587
tree486279376e5d041b43a4d83038bc53bdc2d4c982
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
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@nxp.com>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Pratyush Yadav (Google) <pratyush@kernel.org>
drivers/mtd/spi-nor/core.c