mtd: Blackfin NFC: make sure to check NAND_ALE in cmd_ctrl
authorBarry Song <barry.song@analog.com>
Thu, 5 Aug 2010 15:07:42 +0000 (11:07 -0400)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 5 Aug 2010 15:14:09 +0000 (16:14 +0100)
commitfd508da2208696db146cd1be2bb2e8b799f6e3a2
treec94f40fb8afa74e5ed22d0823478455a0c431a21
parent085d45fb5216c25b69103e5d861fabdc4389e221
mtd: Blackfin NFC: make sure to check NAND_ALE in cmd_ctrl

The NAND base may send some controls which are neither CLE nor ALE, so
we need to explicitly check both instead of assuming things are always
one or the other.  Otherwise, we sometimes send out illegal addresses
to the NAND device.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/bf5xx_nand.c