mtd: nand: provide several helpers to do common NAND operations
authorBoris Brezillon <[email protected]>
Fri, 15 Mar 2019 14:14:32 +0000 (15:14 +0100)
committerTom Rini <[email protected]>
Mon, 22 Apr 2019 15:55:58 +0000 (11:55 -0400)
commit9db29b300f7d9a58122a22a0815fe8449a664563
treebf1f660ba2005237a36eceb0e76449ceec2d190c
parent5df42b0603d50ea59e1039b31fe74c1309abdd3a
mtd: nand: provide several helpers to do common NAND operations

Linux commit 97d90da8a88 ("mtd: nand: provide several helpers
to do common NAND operations")

This is part of the process of removing direct calls to ->cmdfunc()
outside of the core in order to introduce a better interface to execute
NAND operations.

Here we provide several helpers and make use of them to remove all
direct calls to ->cmdfunc(). This way, we can easily modify those
helpers to make use of the new ->exec_op() interface when available.

Signed-off-by: Boris Brezillon <[email protected]>
[[email protected]: rebased and fixed some conflicts]
Signed-off-by: Miquel Raynal <[email protected]>
Acked-by: Masahiro Yamada <[email protected]>
[Philippe Reynes: adapt code to u-boot and only keep new function]

Signed-off-by: Philippe Reynes <[email protected]>
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/rawnand.h