diff options
author | Boerge Struempfel <boerge.struempfel@gmail.com> | 2023-05-30 16:16:39 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-05-30 15:20:10 +0100 |
commit | 5cc223ca4858ec40bd2b8522ebc51c0d4963e51f (patch) | |
tree | c6a0b5bad7026135bd3f98d172c79cdedc917353 /drivers/spi | |
parent | 6a983ff5102ff0d859df05ca3f5cf2f6a17c0fad (diff) | |
download | linux-stable-5cc223ca4858ec40bd2b8522ebc51c0d4963e51f.tar.gz linux-stable-5cc223ca4858ec40bd2b8522ebc51c0d4963e51f.tar.bz2 linux-stable-5cc223ca4858ec40bd2b8522ebc51c0d4963e51f.zip |
spi: spidev: add two new spi mode bits
Allow userspace to set SPI_MOSI_IDLE_LOW and the SPI_3WIRE_HIZ mode bit
using the SPI_IOC_WR_MODE32 ioctl.
Signed-off-by: Boerge Struempfel <boerge.struempfel@gmail.com>
Link: https://lore.kernel.org/r/20230530141641.1155691-4-boerge.struempfel@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spidev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 39d94c850839..c8b938e0f342 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -64,7 +64,8 @@ static_assert(N_SPI_MINORS > 0 && N_SPI_MINORS <= 256); | SPI_NO_CS | SPI_READY | SPI_TX_DUAL \ | SPI_TX_QUAD | SPI_TX_OCTAL | SPI_RX_DUAL \ | SPI_RX_QUAD | SPI_RX_OCTAL \ - | SPI_RX_CPHA_FLIP) + | SPI_RX_CPHA_FLIP | SPI_3WIRE_HIZ \ + | SPI_MOSI_IDLE_LOW) struct spidev_data { dev_t devt; |