mtd: spi-nor: sfdp: save a copy of the SFDP data
authorMichael Walle <michael@walle.cc>
Mon, 3 May 2021 15:56:50 +0000 (17:56 +0200)
committerVignesh Raghavendra <vigneshr@ti.com>
Tue, 15 Jun 2021 17:48:31 +0000 (23:18 +0530)
commit65b6d89d45a77256b743f421d109d469baefa688
tree209a48895a388127b37bf12f39babd4eb83d14d2
parentc6ec3e1e3a853f9469c7d07b0fde0be4da8c3ba1
mtd: spi-nor: sfdp: save a copy of the SFDP data

Due to possible mode switching to 8D-8D-8D, it might not be possible to
read the SFDP after the initial probe. To be able to dump the SFDP via
sysfs afterwards, make a complete copy of it.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Tested-by: Heiko Thiery <heiko.thiery@gmail.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
drivers/mtd/spi-nor/core.h
drivers/mtd/spi-nor/sfdp.c
include/linux/mtd/spi-nor.h