]> git.itanic.dy.fi Git - linux-stable/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:13:16 +0000 (11:13 +0200)
commit7cd88edc4803be118d84d6bec38127c8de66ffe2
tree85fb3ce62e37c5ec61adeecb41a43bd2f0c87d0d
parente5f7e4b2e2bd6bb28bd999ba29cee53dc7cb67d3
mtd: spi-nor: cadence-quadspi: Make driver independent of flash geometry

[ Upstream commit 834b4e8d344139ba64cda22099b2b2ef6c9a542d ]

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