mtd: rawnand: stm32_fmc2: Add NAND Write Protect support
authorChristophe Kerello <christophe.kerello@foss.st.com>
Thu, 17 Feb 2022 14:47:53 +0000 (15:47 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 18 Feb 2022 14:15:03 +0000 (15:15 +0100)
commitffb16c1c42670356c579926aabdac0ac7bbc16d8
tree500dab7402787ab8b1842957ef4eeb5448dd733c
parentcb57fae479be41d1233f5a49d4760de9a5692b6e
mtd: rawnand: stm32_fmc2: Add NAND Write Protect support

This patch adds the support of the WP# signal. WP will be disabled in
probe/resume callbacks and will be enabled in remove/suspend callbacks.

Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220217144755.270679-3-christophe.kerello@foss.st.com
drivers/mtd/nand/raw/stm32_fmc2_nand.c