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 16:53:56 +0000 (18:53 +0200)
commitd18c3d2304de3c099f147ece9f757767e2eaeef1
tree27724da136e976a72dea6c3097d15e37ae779789
parent45804b0e3cb3f654383db94cc46af9ee7ed3bf08
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