]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/85xx: fix NAND_CMD_READID read bytes number
authorShaohui Xie <Shaohui.Xie@freescale.com>
Mon, 13 Jun 2011 02:23:12 +0000 (10:23 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 22 Jun 2011 11:08:48 +0000 (06:08 -0500)
commit4a38f7c8bf80419e08dbd5faf46d6150b044b8e6
tree7c4a3cec2b88b157bd0dfdd9a1147f553da4aaa7
parent15f0f9c52e91443237ee97b1a61f25cd55f94206
powerpc/85xx: fix NAND_CMD_READID read bytes number

when nand_get_flash_type() is called, it will read 8 bytes of ID instead of 5,
but the driver only read 5 bytes, so kernel will dump error messages like:

fsl-lbc ffe124000.localbus: read_byte beyond end of buffer
fsl-lbc ffe124000.localbus: read_byte beyond end of buffer
fsl-lbc ffe124000.localbus: read_byte beyond end of buffer

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/mtd/nand/fsl_elbc_nand.c