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)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 30 Aug 2013 20:34:48 +0000 (21:34 +0100)
commit2febcdf84b75aae627c61f0a5bf531a69299966c
treef0ef416848a231d6475bf6905c67243b251e1908
parentd1048aaf6d8b467d226c8d8901017ca48f4e48e9
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>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c