mtd: spi-nor: allow a flash to define its own ready() function
authorMichael Walle <michael@walle.cc>
Wed, 23 Feb 2022 13:43:44 +0000 (14:43 +0100)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 25 Feb 2022 16:11:17 +0000 (18:11 +0200)
commit4cf1c7bdc55c8af3a2fbc028e21918630d081f12
tree692d3ea55765ef3bf31a8cf284906a921dff9b96
parentb44aa9ac6bb4a305ceb2ed224781bc10abc03b12
mtd: spi-nor: allow a flash to define its own ready() function

Xilinx and Micron flashes have their own implementation of the
spi_nor_ready() function. At the moment, the core will figure out
which one to call according to some flags. Lay the foundation to
make it possible that a flash can register its own ready()
function.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20220223134358.1914798-19-michael@walle.cc
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h