mtd: spi-nor: core: use dummy cycle and address width info from SFDP
authorPratyush Yadav <p.yadav@ti.com>
Mon, 5 Oct 2020 15:31:29 +0000 (21:01 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Nov 2020 06:26:16 +0000 (11:56 +0530)
commit6c6a2b2b8ed6dd1ad1a318afd1035777a73936e0
tree076af3ca5195393310000cc2de689ea8ca385bed
parentfb27f198971a68fec59d5493b68e35e916fce62c
mtd: spi-nor: core: use dummy cycle and address width info from SFDP

The xSPI Profile 1.0 table specifies how many dummy cycles and address
bytes are needed for the Read Status Register command in octal DTR mode.
Use that information to send the correct Read SR command.

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