spi: bcm-qspi: Added mspi read fallback in bcm_qspi_flash_read()
authorKamal Dasu <kdasu.kdev@gmail.com>
Mon, 30 Jan 2017 21:11:16 +0000 (16:11 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 31 Jan 2017 21:03:44 +0000 (21:03 +0000)
commit81ab52fd94f32aaa8a9c27b41934e4ae932ca106
tree1371759e56a09a486a83d6bb7ed18c641a12c018
parent279e4af7b4bebc6a5bf2d0e5b3209f3dcea94a19
spi: bcm-qspi: Added mspi read fallback in bcm_qspi_flash_read()

Added mspi read fallback under certain circumstances like unaligned
buffer, address on short reads. Also takes care of version 3.0 spi
controller where flash address crosses 4MB boundary on transfers the
driver resorts to mspi reads.

Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm-qspi.c