mtd: nand: Create a NAND reset function
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 15 Sep 2016 08:32:45 +0000 (10:32 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 23 Sep 2016 07:35:16 +0000 (09:35 +0200)
commit2f94abfe35b210e7711af9202a3dcfc9e779219a
tree070e4edf10d03b98550c527c1eceb7f6c67e4792
parent79022591839f110f465cac0223e117b91d47d5db
mtd: nand: Create a NAND reset function

When NAND devices are resetted some initialization may have to be done,
like for example they have to be configured for the timing mode that
shall be used. To get a common place where this initialization can be
implemented create a nand_reset() function. This currently only issues
a NAND_CMD_RESET to the NAND device. The places issuing this command
manually are replaced with a call to nand_reset().

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h