]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: spinand: gigadevice: Fix the get ecc status issue
authorHan Xu <han.xu@nxp.com>
Wed, 8 Nov 2023 15:07:01 +0000 (09:07 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:48:34 +0000 (14:48 +0000)
commitc53b8d8f70c422c8d8aaaf1d72070b2f25cd3a48
tree145cc3bb4c72400b49ad05e05eb88cac37b17809
parent8cb8ef0c79e3686320e2854c2ab9c9ab4df7b8e8
mtd: spinand: gigadevice: Fix the get ecc status issue

[ Upstream commit 59950610c0c00c7a06d8a75d2ee5d73dba4274cf ]

Some GigaDevice ecc_get_status functions use on-stack buffer for
spi_mem_op causes spi_mem_check_op failing, fix the issue by using
spinand scratchbuf.

Fixes: c40c7a990a46 ("mtd: spinand: Add support for GigaDevice GD5F1GQ4UExxG")
Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20231108150701.593912-1-han.xu@nxp.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/spi/gigadevice.c