Searched hist:f6424c22aa3673a0313a306be339495c67c41891 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | fsl_elbc_nand.c | diff f6424c22aa3673a0313a306be339495c67c41891 Fri Mar 22 08:26:19 CDT 2019 Marek Behún <marek.behun@nic.cz> mtd: rawnand: fsl_elbc: Make SW ECC work
Move the code that choses ECC into _attach_chip, which is executed only after the chip->ecc.* properties were loaded from device-tree. This way we know which ECC method was chosen by the device-tree and can set methods appropriately.
The chip->ecc.*page methods should be set to fsl_elbc_*page only in HW ECC mode.
Signed-off-by: Marek Behún <marek.behun@nic.cz> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
|