mtd: nand: correct extemded param page error handling
authorBrian Norris <computersforpeace@gmail.com>
Tue, 17 Sep 2013 01:20:21 +0000 (18:20 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 27 Oct 2013 23:27:04 +0000 (16:27 -0700)
commit4ae7d228d6048d25a16bee209ebea24c5ecde825
tree21826962595819f56227fe8ed1ae28e3a644fd47
parent2a3d933a46e9948e01fc34348bed0baec8d8bf2b
mtd: nand: correct extemded param page error handling

If the ONFI extended parameter page gives codeword_size == 0, the
extended ECC information is corrupt and should not be used. Currently,
we (correctly) avoid using the information, but we don't report the
error to the caller, so the caller doesn't know that we didn't
initialize ecc_strength_ds and ecc_step_ds. Now the caller can warn the
user that it does not have sufficient information.

This also removes the false and useless "ONFI extended param page
detected" debug message (it was printed even on the aforementioned
corruption, and for the success case, we don't really want a print).

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Huang Shijie <b32955@freescale.com>
drivers/mtd/nand/nand_base.c
This page took 0.02599 seconds and 5 git commands to generate.