]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: print out the page size and oob size after parsing out the nand
authorHuang Shijie <b32955@freescale.com>
Mon, 9 Apr 2012 03:41:37 +0000 (11:41 +0800)
committerArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Fri, 27 Apr 2012 06:02:19 +0000 (09:02 +0300)
commit44b010ec28fd1508df8b9c2660afa2522b6ffdd9
tree207fb6223c79996b309682b0163a592c7691512b
parentc0524485a1a8261f1bac3558be8a17424ab44107
mtd: print out the page size and oob size after parsing out the nand

Some not-supported nand chips may pass the current parsing code,
and get the wrong page size and oob size. Sometimes, it's hard to notice
that you get the wrong values, because there is no warning or error.

So it's useful to print out the page size and oob size in the end of
the parsing function. We can check these values with the datasheet of the nand
chip as soon as possible.

Artem: amend the print a bit

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
drivers/mtd/nand/nand_base.c