spi: bcm-qspi: Avoid setting MSPI_CDRAM_PCS for spi-nor master
authorKamal Dasu <kdasu.kdev@gmail.com>
Thu, 26 Apr 2018 18:48:00 +0000 (14:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 May 2018 14:57:56 +0000 (16:57 +0200)
commit1c384327383de13223186ec138c57cb49fa1efea
tree318e7333d488442d63caeb964e89a9603ad0012b
parenta436539bc16fdc6cb69cfa069ca0388df8d53d4b
spi: bcm-qspi: Avoid setting MSPI_CDRAM_PCS for spi-nor master

commit 5eb9a07a4ae1008b67d8bcd47bddb3dae97456b7 upstream.

Added fix for probing of spi-nor device non-zero chip selects. Set
MSPI_CDRAM_PCS (peripheral chip select) with spi master for MSPI
controller and not for MSPI/BSPI spi-nor master controller. Ensure
setting of cs bit in chip select register on chip select change.

Fixes: fa236a7ef24048 ("spi: bcm-qspi: Add Broadcom MSPI driver")
Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-bcm-qspi.c