]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 14 May 2012 03:47:35 +0000 (22:47 -0500)
commit7a37349cb5080933058281c8a89d8f223c09ff67
treeca263c0b00ad97608395c60b13bebaeac3666151
parent93651256df7290089f3b48c8fe7b768978ce30ac
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>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c