]> git.karo-electronics.de Git - karo-tx-linux.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)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:16:42 +0000 (21:16 -0600)
commitc48f85c8a32fb8a6599bd07b58be377bd0b1b85f
tree876304a42fb68c8b33813fbb49502bae1d205f13
parent5c9a7ac5a16c709d07a497b9ec38662c45d4f149
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>
Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/mtd/nand/nand_base.c