]> 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)
commite861b32833f5090345d4492b75e3fd4f719fd3dc
tree070e4edf10d03b98550c527c1eceb7f6c67e4792
parentc88c13fb5f9defd960450b5226144f455b4a5815
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