]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3896db219d3257979f19d0b1c6703a6730a31aeb
tree070e4edf10d03b98550c527c1eceb7f6c67e4792
parent3e608095bc13bac4aef7cf290a9feefeb9b5fc86
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