]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: samsung: warn about un-parseable ECC info
authorBrian Norris <computersforpeace@gmail.com>
Tue, 2 May 2017 00:04:55 +0000 (17:04 -0700)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 22 May 2017 07:42:29 +0000 (09:42 +0200)
commitbda94dc0bc96c8cb51abdc4f840391a1da99dc8d
tree3f5ca1529e25a793ef58553730707bef3f0915e6
parente3bbab8fbb666f794bc525719b82a461983f87ee
mtd: nand: samsung: warn about un-parseable ECC info

We don't handle cases larger than 7. We probably shouldn't pretend we
know the ECC step size in this case, and it's probably also good to
WARN() like we do in many other similar cases.

Fixes: ae15bdd4fd70 ("mtd: nand: samsung: Retrieve ECC requirements from extended ID")
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_samsung.c