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)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 5 Feb 2024 10:50:31 +0000 (11:50 +0100)
commit59950610c0c00c7a06d8a75d2ee5d73dba4274cf
tree9df2166bdcc7f80eb1ea803180fd97543aefb25e
parent6613476e225e090cc9aad49be7fa504e290dd33d
mtd: spinand: gigadevice: Fix the get ecc status issue

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
drivers/mtd/nand/spi/gigadevice.c