]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: Warn the user if the selected ECC strength is too weak
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Wed, 14 May 2014 17:58:06 +0000 (14:58 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 21 May 2014 19:55:08 +0000 (12:55 -0700)
commite838b64099b113a21cfecd199e64306b427a4ed5
treec1678fc73873ba2bdbb8dffb15f4749923f91e4d
parent59c54c49fffacbdf0a986f0d33bf4922aa034201
mtd: nand: Warn the user if the selected ECC strength is too weak

This commit makes use of the chip->ecc_strength_ds and chip->ecc_step_ds which
contain the datasheet minimum requested ECC strength to produce a noisy warning
if the configured ECC strength is weaker.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nand_base.c