mtd/nand:Fix wrong usage of is_blank() in fsl_ifc_run_command
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Fri, 20 Jan 2012 13:08:14 +0000 (18:38 +0530)
committerScott Wood <scottwood@freescale.com>
Tue, 28 Feb 2012 20:03:39 +0000 (14:03 -0600)
commit5f720b85141646055c08bbccb0e2549f654563de
tree5d1b00f9a132eeb4226bacd3e8cfb6add6bf9807
parentd90361285c1c9751bd1b3700a18db882b32ddad5
mtd/nand:Fix wrong usage of is_blank() in fsl_ifc_run_command

Freescale IFC NAND Machine calculates ECC on 512byte sector and same is used in
fsl_ifc_run_command() during ECC status verification. Also this sector is passed
to is_blank() for blank checking. It is wrong at first place because
is_blank()'s implementation checks for Page size and OOB area size.
is_blank() should be called per page for main and OOB area verification.

Variables name are redefined to avoid confusion between buffer and ecc sector.

Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/fsl_ifc_nand.c