OSDN Git Service

mtd: denali: use 8 bytes for READID command
authorgrmoore@altera.com <grmoore@altera.com>
Mon, 23 Jun 2014 19:21:10 +0000 (14:21 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 15 Jul 2014 01:41:40 +0000 (18:41 -0700)
commitd68a5c3d2db408a83e69f12b57b8e19c086d1aee
tree23dadc74088f47ecd16b911660cdc0af19fd6640
parenta152056c912db82860a8b4c23d0bd3a5aa89e363
mtd: denali: use 8 bytes for READID command

The Denali NAND driver reads only 5 bytes of ID, but some Hynix and Samsung
have size parameters in the 6th byte.  As a result, the page and oob size
for a Hynix H27UAG8T2B were calculated incorrectly and the driver failed to
load.

The solution is to read 8 bytes of ID, as expected by the NAND framework.

Signed-off-by: Graham Moore <grmoore@altera.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/denali.c