spi: spi-gpio: fix SPI_CS_HIGH capability
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 21 Feb 2019 15:59:58 +0000 (15:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:22:07 +0000 (08:22 +0200)
commitb3f864b88256118a1566922c6ce079305d46662c
tree593fde3d84bd82f2e7720160bba08125d88112bf
parent1d60902a5448b2bd55806c5883965a03c7e1e309
spi: spi-gpio: fix SPI_CS_HIGH capability

[ Upstream commit b89fefda7d4e3a649129584d855be233c7465264 ]

spi-gpio is capable of dealing with active-high chip-selects.
Unfortunately, commit 4b859db2c606 ("spi: spi-gpio: add SPI_3WIRE
support") broke this by setting master->mode_bits, which overrides
the setting in the spi-bitbang code.  Fix this.

[Fixed a trivial conflict with SPI_3WIRE_HIZ support -- broonie]

Fixes: 4b859db2c606 ("spi: spi-gpio: add SPI_3WIRE support")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-gpio.c