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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jan 2021 15:04:05 +0000 (16:04 +0100)
commitda02e4ca8a297293e73449e9d187ba02a7667c43
tree97599c2cb92b17272d1e6de796d6280597ba94e6
parent04ed7f1da638fac5ad8ae64a11cec39395d98683
spi: fsl: Fix driver breakage when SPI_CS_HIGH is not set in spi->mode

commit 7a2da5d7960a64ee923fe3e31f01a1101052c66f upstream.

Commit 766c6b63aa04 ("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: 766c6b63aa04 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-fsl-spi.c