]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: atmel-quadspi: Factor out switching to Serial Memory Mode to function
authorBence Csókás <csokas.bence@prolan.hu>
Wed, 18 Dec 2024 15:17:54 +0000 (16:17 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 18 Dec 2024 16:01:26 +0000 (16:01 +0000)
commitf663898d047a7a0a04d30732b1405ee007fdd243
treed9a0a4c9237bf9ba0cf4c11be9441b06282047dc
parent0acb90676629f5549e185dd3a144806e2a88fe40
spi: atmel-quadspi: Factor out switching to Serial Memory Mode to function

SAMA7G5 support (that was forward-ported from v6.1) re-introduced
a bug that was fixed in v6.12, thankfully only in the codepath of
the new SoC. But to prevent similar mistakes in the future, we
split out the offending code to a function, and use this, fixed
version everywhere.

To facilitate this, support function `atmel_qspi_update_config()`
also had to be moved upwards. For best viewing experience, use
`--color-moved-ws="allow-indentation-change" --color-moved`.

Fixes: 5af42209a4d2 ("spi: atmel-quadspi: Add support for sama7g5 QSPI")
Reported-by: Alexander Dahl <ada@thorsis.com>
Closes: https://lore.kernel.org/linux-spi/20241218-appliance-jaws-90773405977a@thorsis.com/
Signed-off-by: Bence Csókás <csokas.bence@prolan.hu>
Link: https://patch.msgid.link/20241218151754.365519-1-csokas.bence@prolan.hu
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/atmel-quadspi.c