]> git.baikalelectronics.ru Git - kernel.git/commit
spi: aspeed: Fix window offset of CE1
authorCédric Le Goater <clg@kaod.org>
Sun, 16 Oct 2022 15:57:22 +0000 (17:57 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 19 Oct 2022 13:36:43 +0000 (14:36 +0100)
commit07773c5dbf319adefe0b8be487de7ba9eaa62ae9
treec3f146fc89013a6bddddc5683c0a208be922b6b7
parenta2fba4b421ef2f0d50b3ae64dd200ebcef1aee0a
spi: aspeed: Fix window offset of CE1

The offset value of the mapping window in the kernel structure is
calculated using the value of the previous window offset. This doesn't
reflect how the HW is configured and can lead to erroneous setting of
the second flash device (CE1).

Cc: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
Fixes: dcce466b2966 ("spi: spi-mem: Convert Aspeed SMC driver to spi-mem")
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20221016155722.3520802-1-clg@kaod.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-aspeed-smc.c