]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: add sanity check of ecc strength to nand_scan_tail()
authorMike Dunn <mikedunn@newsguy.com>
Wed, 25 Apr 2012 19:06:10 +0000 (12:06 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 14 May 2012 04:12:41 +0000 (23:12 -0500)
commit161b7240961c0114968d6f71ae81c93579722f24
tree9c2ae016d1a388485a1d1ff2941bc6fa9f3d17a8
parentf9bec739451028d03bb36631616d367cc322b14f
mtd: nand: add sanity check of ecc strength to nand_scan_tail()

This patch adds sanity checks that ensure that drivers for controllers with
hardware ECC set the 'strength' element in struct nand_ecc_ctrl.  Also stylistic
changes to the line that calculates strength for software ECC.

This v2 simplifies the check.  Thanks Brian!¹

¹ http://lists.infradead.org/pipermail/linux-mtd/2012-April/040890.html

Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c