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)
commit67a9ad9b8a6f6ea76ef8fc484ae49970d72d5534
treec1678fc73873ba2bdbb8dffb15f4749923f91e4d
parentedf02fb248022c13b2c86f08177b99ce619e693a
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