]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: spansion: Use manufacturer late_init()
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 29 Oct 2021 17:26:19 +0000 (20:26 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 17 Nov 2021 12:41:29 +0000 (14:41 +0200)
commitf6d154f33e09ccdadfbfeec788947528cc9b1e43
tree635d6a792e2f44c5e2c86a0cdf0c49e06b054ff7
parenta26e67a13db053a0cd19085731c128c7b0630a1d
mtd: spi-nor: spansion: Use manufacturer late_init()

spansion_post_sfdp_fixups() was called regardless if the flash defined
SFDP tables or not. A better place for this kind of parameters init is
in manufacturer's late_init() hook. post_sfdp() should be called only
when SFDP is defined. No functional change in this patch.

Instead of doing the 4b opcodes settings at manufacturer level, thus
also for every flash that will be introduced, this should be done
just where it is needed, per flash. I'll let this for other patch.

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-12-tudor.ambarus@microchip.com
drivers/mtd/spi-nor/spansion.c