mtd: spi-nor: sfdp: detect Soft Reset sequence support from BFPT
authorPratyush Yadav <p.yadav@ti.com>
Mon, 5 Oct 2020 15:31:34 +0000 (21:01 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Nov 2020 06:26:17 +0000 (11:56 +0530)
commit1131324aa53ad3465a36c4e58a56615e1bf52932
tree75b4e8063d707b0c8a0a732ad9ada81b9b926c5c
parenta33c89db4c3ba8e5c3df7726491329cd35d4bb59
mtd: spi-nor: sfdp: detect Soft Reset sequence support from BFPT

A Soft Reset sequence will return the flash to Power-on-Reset (POR)
state. It consists of two commands: Soft Reset Enable and Soft Reset.
Find out if the sequence is supported from BFPT DWORD 16.

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-12-p.yadav@ti.com
drivers/mtd/spi-nor/core.h
drivers/mtd/spi-nor/sfdp.c
drivers/mtd/spi-nor/sfdp.h