]> git.baikalelectronics.ru Git - kernel.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)
committerRichard Weinberger <richard@nod.at>
Mon, 18 May 2020 20:02:05 +0000 (22:02 +0200)
commita70807c4e9892b7b052509b8b764b117afc14196
treee296a5269bf3795040379b7b97d9e1afb7d95429
parentf633dd0e5ad891db79a3e3e3588483a3c8c2941f
mtd: spinand: Propagate ECC information to the MTD structure

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: 9d920af6b0c0 ("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>
drivers/mtd/nand/spi/core.c