mtd: gpmi-nand bugfix: reset the BCH module when it is not MX23
authorHuang Shijie <b32955@freescale.com>
Wed, 4 Jan 2012 03:18:46 +0000 (11:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Feb 2012 19:16:54 +0000 (11:16 -0800)
commit5e71844e1d3a9ae8681fc18781a3579eed4b2406
tree34ac3c7b57f0840bb0d631a049bd6b3efc2841c7
parentff016619c98fa2edcb44b6cffe5a60435328348a
mtd: gpmi-nand bugfix: reset the BCH module when it is not MX23

commit 9398d1ce09b9009996f7d2468e1d3c785fa6feda upstream.

In MX28, if we do not reset the BCH module. The BCH module may
becomes unstable when the board reboots for several thousands times.
This bug has been catched in customer's production.

The patch adds some comments (some from Wolfram Sang), and fixes it now.

Also change gpmi_reset_block() to static.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/gpmi-nand/gpmi-lib.c