]> git.baikalelectronics.ru Git - kernel.git/commit
spi: fsl: Fix driver breakage when SPI_CS_HIGH is not set in spi->mode
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 14 Jan 2021 13:09:37 +0000 (13:09 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 14 Jan 2021 14:26:53 +0000 (14:26 +0000)
commitac84cd362cc5683eb3a58725864274fe217718fb
tree215305def49873e4a7635928d0de686b7bcc7f4a
parent0de845ca16708c4f084d3b978cd0e2e7dcbb43df
spi: fsl: Fix driver breakage when SPI_CS_HIGH is not set in spi->mode

Commit b4f521973678 ("spi: fix client driver breakages when using GPIO
descriptors") broke fsl spi driver.

As now we fully rely on gpiolib for handling the polarity of
chip selects, the driver shall not alter the GPIO value anymore
when SPI_CS_HIGH is not set in spi->mode.

Fixes: b4f521973678 ("spi: fix client driver breakages when using GPIO descriptors")
Cc: stable@vger.kernel.org
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/6b51cc2bfbca70d3e9b9da7b7aa4c7a9d793ca0e.1610629002.git.christophe.leroy@csgroup.eu
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-spi.c