mtd: spi-nor: Add support for flash reset
authorSai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Thu, 8 Sep 2022 06:44:28 +0000 (12:14 +0530)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 25 Oct 2022 02:11:34 +0000 (05:11 +0300)
commit8f1ee9ef71d0c0b185d2afc800e68d6addf29fe5
treed13410de757c1b5e663ccbe675528e8c049c2d83
parent7f2937efe18630832c8eae7a74e8c19fc1e7936e
mtd: spi-nor: Add support for flash reset

Add support for spi-nor flash reset via GPIO controller by reading the
reset-gpio property. If there is a valid GPIO specifier then reset will
be performed by asserting and deasserting the GPIO using gpiod APIs
otherwise it will not perform any operation.

Signed-off-by: Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220908064428.2962-3-sai.krishna.potthuri@amd.com
drivers/mtd/spi-nor/core.c