]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
nand: mxc: Use appropriate page number in syndrome functions
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Thu, 11 Apr 2013 09:35:41 +0000 (09:35 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 12 Apr 2013 05:55:05 +0000 (07:55 +0200)
commit3ec9d6eb09ca799f2632a58012ef9603982a642d
tree537e1515ec976485d18d2edb8a196a1f9e328b4a
parent78ee7b1729f69215a07c44b9895f69bd9a4b58a2
nand: mxc: Use appropriate page number in syndrome functions

The syndrome functions should use the page number passed as argument instead of
the page number saved upon NAND_CMD_READ0.

This does not make any difference if the NAND_NO_AUTOINCR option is set, but
otherwise this fixes accesses to the wrong pages.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Acked-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/mxc_nand.c