From: Eric Benard Date: Wed, 9 Dec 2009 11:12:43 +0000 (+0100) Subject: mtd: mxc_nand: add RESET command support X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=66803762c19f2e45ff4cc13cf63194589eb698c2;p=openwrt%2Fstaging%2Fblogic.git mtd: mxc_nand: add RESET command support mxc_nand driver must support the RESET Command in order to support Micron NAND which need a reset before any other command. Signed-off-by: Eric Benard Acked-by: Sascha Hauer Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 970ce6bd06a8..06cc378196b5 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c @@ -638,6 +638,7 @@ static void mxc_nand_command(struct mtd_info *mtd, unsigned command, case NAND_CMD_ERASE1: case NAND_CMD_ERASE2: + case NAND_CMD_RESET: send_cmd(host, command, false); mxc_do_addr_cycle(mtd, column, page_addr);