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)
committerMark Brown <broonie@kernel.org>
Thu, 21 Feb 2019 19:03:35 +0000 (19:03 +0000)
commitb89fefda7d4e3a649129584d855be233c7465264
treedec8ed140af6e85ce12887d97d21a8f458990337
parentef070b4e4aa25bb5f8632ad196644026c11903bf
spi: spi-gpio: fix SPI_CS_HIGH capability

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
drivers/spi/spi-gpio.c