]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: spi-nor: Add the SPI_NOR_XSR_RDY flag
authorBoris Brezillon <boris.brezillon@bootlin.com>
Tue, 30 Jul 2019 08:56:53 +0000 (11:56 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 28 Aug 2019 09:40:30 +0000 (12:40 +0300)
commitad3bba06b63697fd47525a13d29e8ac0312b0302
treece76e7f61efac373a9d726800685885209d4ea01
parent641edddb4f43e8adfd851aea3e48ba35c3b81f4a
mtd: spi-nor: Add the SPI_NOR_XSR_RDY flag

S3AN flashes use a specific opcode to read the status register.
We currently use the SPI_S3AN flag to decide whether this specific
SR read opcode should be used, but SPI_S3AN is about to disappear, so
let's add a new flag.

Note that we use the same bit as SPI_S3AN implies SPI_NOR_XSR_RDY and
vice versa.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/mtd/spi-nor/spi-nor.c