]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: spinand: Propagate ECC information to the MTD structure
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 13 May 2020 13:10:29 +0000 (15:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 15:48:00 +0000 (17:48 +0200)
commitdae9b5f3f6f0b79293af289103ebfb9dcee689b2
tree06bd586ecbb06927b3f6cf9c3d93b9430d53c6cb
parent11130655a78d5560ae20b15b428d42945c8fe3f4
mtd: spinand: Propagate ECC information to the MTD structure

[ Upstream commit 3507273d5a4d3c2e46f9d3f9ed9449805f5dff07 ]

This is done by default in the raw NAND core (nand_base.c) but was
missing in the SPI-NAND core. Without these two lines the ecc_strength
and ecc_step_size values are not exported to the user through sysfs.

Fixes: 7529df465248 ("mtd: nand: Add core infrastructure to support SPI NANDs")
Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/spi/core.c