]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd31a00f10e64fd4772682e2e7e1086434674cc16
treedec8ed140af6e85ce12887d97d21a8f458990337
parent7e64b5d81710e5d8722d4a80e62054bc5e74fcc5
spi: spi-gpio: fix SPI_CS_HIGH capability

spi-gpio is capable of dealing with active-high chip-selects.
Unfortunately, commit cf766ebea85b ("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: cf766ebea85b ("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