OSDN Git Service

mtd: spi-nor: core: perform a Soft Reset on shutdown
authorPratyush Yadav <p.yadav@ti.com>
Mon, 5 Oct 2020 15:31:35 +0000 (21:01 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Nov 2020 06:26:17 +0000 (11:56 +0530)
commitd73ee7534cc537b98b61bfd83dbce5bb12aecb80
tree09efa7e59d3bb003317b9762ab8645010b9dd623
parent1131324aa53ad3465a36c4e58a56615e1bf52932
mtd: spi-nor: core: perform a Soft Reset on shutdown

Perform a Soft Reset on shutdown on flashes that support it so that the
flash can be reset to its initial state and any configurations made by
spi-nor (given that they're only done in volatile registers) will be
reset. This will hand back the flash in pristine state for any further
operations on it.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20201005153138.6437-13-p.yadav@ti.com
drivers/mtd/spi-nor/core.c
include/linux/mtd/spi-nor.h