mtd: spi-nor: winbond: Use manufacturer late_init() for OTP ops
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 29 Oct 2021 17:26:16 +0000 (20:26 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 17 Nov 2021 12:41:28 +0000 (14:41 +0200)
commit00947a9649497273ec315ab080dd309e2b36ee8e
tree85c5b8048dbcdb781b18ec07c8b58639a13889ba
parent7d4ff0613fb537315c7a4214de74d32b2615c72a
mtd: spi-nor: winbond: Use manufacturer late_init() for OTP ops

OTP is not described in the JESD216 SFDP standard, place the
OTP ops init in late_init().

We can't get rid of the default_init() hook for winbond, as the
4byte_addr_mode is SFDP specific and will require to have all
flashes at hand, in order to check which has the SFDP tables defined,
in which case there's nothing to do if the SFDP tables are corect,
and which of the flashes do not define the SFDP tables in which case
each flash should declare a late_init() fixup.

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