]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
spi: bcm-qspi: fix MSPI only access with bcm_qspi_exec_mem_op()
authorKamal Dasu <kdasu.kdev@gmail.com>
Mon, 28 Mar 2022 14:24:42 +0000 (10:24 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:41:09 +0000 (14:41 +0200)
commit155bf86f1fd0ac19d9201eff50937735c2b333a9
tree443348cf23f74f34dfb43b4e169f1ada5e6e902a
parent674aef8097cdf15a797f073e34c4cd8884e33a76
spi: bcm-qspi: fix MSPI only access with bcm_qspi_exec_mem_op()

BugLink: https://bugs.launchpad.net/bugs/1969107
[ Upstream commit 2c7d1b281286c46049cd22b43435cecba560edde ]

This fixes case where MSPI controller is used to access spi-nor
flash and BSPI block is not present.

Fixes: 5f195ee7d830 ("spi: bcm-qspi: Implement the spi_mem interface")
Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220328142442.7553-1-kdasu.kdev@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 88a3bdcb462ac11cb9054b1412e96b1e1ddb8d1b)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/spi/spi-bcm-qspi.c