spi: bcm-qspi: fix SFDP BFPT read by usig mspi read
authorKamal Dasu <kamal.dasu@broadcom.com>
Tue, 9 Jan 2024 21:00:32 +0000 (16:00 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 23 Jan 2024 13:28:03 +0000 (13:28 +0000)
commit574bf7bbe83794a902679846770f75a9b7f28176
treebcf49a854a8c3f4f20401fd592feb5273914d54f
parent8afe3c7fcaf72fca1e7d3dab16a5b7f4201ece17
spi: bcm-qspi: fix SFDP BFPT read by usig mspi read

SFDP read shall use the mspi reads when using the bcm_qspi_exec_mem_op()
call. This fixes SFDP parameter page read failures seen with parts that
now use SFDP protocol to read the basic flash parameter table.

Fixes: 5f195ee7d830 ("spi: bcm-qspi: Implement the spi_mem interface")
Signed-off-by: Kamal Dasu <kamal.dasu@broadcom.com>
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://msgid.link/r/20240109210033.43249-1-kamal.dasu@broadcom.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm-qspi.c