mtd: spi-nor: move all micron-st specifics into micron-st.c
authorMichael Walle <michael@walle.cc>
Wed, 23 Feb 2022 13:43:50 +0000 (14:43 +0100)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 25 Feb 2022 16:12:19 +0000 (18:12 +0200)
commitc770abe52d81089a8b8ecd1fe42722e29bbab5f5
treefc7ad385fdbbed5e65f1cd23ade350fb7027556f
parent56b852e8635ba83ecd47ad5f6ad269e8ab782ec8
mtd: spi-nor: move all micron-st specifics into micron-st.c

The flag status register is only available on micron flashes. Move all
the functions around that into the micron module.

This is almost a mechanical move except for the spi_nor_fsr_ready()
which now also checks the normal status register. Previously, this was
done in spi_nor_ready().

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Tested-by: Pratyush Yadav <p.yadav@ti.com> # on mt35xu512aba, s28hs512t
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20220223134358.1914798-25-michael@walle.cc
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/micron-st.c
include/linux/mtd/spi-nor.h