]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a1a51851600b87478e255f47e66f1b2426a3f9d
tree692d3ea55765ef3bf31a8cf284906a921dff9b96
parent95b56b03cf7fb02b0a22c2ec50389a069f197b75
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