]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: gpmi: set the BCH's geometry with the ecc info
authorHuang Shijie <b32955@freescale.com>
Fri, 17 May 2013 03:17:34 +0000 (11:17 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 8 Aug 2013 22:57:37 +0000 (15:57 -0700)
commita789b9a602d63634dd7cd4bc9a72036a3a9b485c
tree0359f3aabbea2bad7b3e3227ee347540afaecc3c
parente6669a44c739a137b4f24f3b2c1e99fc14c4c67a
mtd: gpmi: set the BCH's geometry with the ecc info

If the nand chip provides us the ECC info, we can use it firstly.
The set_geometry_by_ecc_info() will use the ECC info, and
calculate the parameters we need.

Rename the old code to legacy_set_geometry() which will takes effect
when there is no ECC info from the nand chip or we fails in the ECC info case.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c