]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: cadence-quadspi: Make driver independent of flash geometry
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 1 Jun 2020 07:04:37 +0000 (12:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:48 +0000 (11:35 +0200)
commit6d89defa4d8d782694d5d062b918d31b56fa6df0
tree72e6f29c6bd340a4c02c6b8a729cfff6a5832f5e
parent901b7e3ff99edfc86bc0632351b40a3b7a95b1b7
mtd: spi-nor: cadence-quadspi: Make driver independent of flash geometry

[ Upstream commit 6d07835ca514df6b803fbb74d8dedd6ad8eb6331 ]

Drop configuration of Flash size, erase size and page size
configuration. Flash size is needed only if using AHB decoder (BIT 23 of
CONFIG_REG) which is not used by the driver.
Erase size and page size are needed if IP is configured to send WREN
automatically. But since SPI NOR layer takes care of sending WREN, there
is no need to configure these fields either.

Therefore drop these in preparation to move the driver to spi-mem
framework where flash geometry is not visible to controller driver.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Acked-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20200601070444.16923-2-vigneshr@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: 2087e85bb66e ("spi: cadence-quadspi: fix suspend-resume implementations")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/spi-nor/cadence-quadspi.c