]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: airoha: set custom sector size equal to flash page size
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Sun, 12 Oct 2025 12:17:02 +0000 (15:17 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 17 Oct 2025 12:30:51 +0000 (13:30 +0100)
commitfb81b5cecb8553e3ca2b45288cf340d43c9c2991
tree5f0b8d2e8dfc3007f50ec7a67629039b27a491d2
parentd1ff30df1d9a4eb4c067795abb5e2a66910fd108
spi: airoha: set custom sector size equal to flash page size

Set custom sector size equal to flash page size including oob. Thus we
will always read a single sector. The maximum custom sector size is
8187, so all possible flash sector sizes are supported.

This patch is a necessary step to avoid reading flash page settings
from SNFI registers during driver startup.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20251012121707.2296160-12-mikhail.kshevetskiy@iopsys.eu
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-airoha-snfi.c