]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: rawnand: denali: remove ->erase hook
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 21 Jan 2019 04:52:06 +0000 (13:52 +0900)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 5 Feb 2019 15:56:10 +0000 (16:56 +0100)
commitd4ea6ed022de33b326cce5ea60a4a80ca0a96750
treef883a026b2ee794508de3fe75faaecfaa33986ee
parent3175e121832fc768e2431e91128e5053ac7061f3
mtd: rawnand: denali: remove ->erase hook

Commit f9ebd1bb4103 ("mtd: rawnand: Deprecate ->erase()") discouraged
the use of this hook, so I am happy to follow the suggestion.

Although the Denali IP provides a special MAP10 command for erasing,
using it would not buy us much. The Denali IP actually works with the
generic erasing by single_erase() + ->cmdfunc hook (nand_command_lp)
+ ->cmd_ctrl hook (denali_cmd_ctrl).

This method is also deprecated, but denali_erase() can go away
irrespective of ->exec_op conversion.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/denali.c