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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:19 +0000 (20:59 +0200)
commit88a3bdcb462ac11cb9054b1412e96b1e1ddb8d1b
treebc1dbee56ee230f5599554fcbca0bfaefff212bc
parentc9bdce2359b5f4986eb38d1e81865b3586cc20d2
spi: bcm-qspi: fix MSPI only access with bcm_qspi_exec_mem_op()

[ 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>
drivers/spi/spi-bcm-qspi.c