Skip to content

Commit 5cc223c

Browse files
BoergeStbroonie
authored andcommitted
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>
1 parent 6a983ff commit 5cc223c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/spi/spidev.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ static_assert(N_SPI_MINORS > 0 && N_SPI_MINORS <= 256);
6464
| SPI_NO_CS | SPI_READY | SPI_TX_DUAL \
6565
| SPI_TX_QUAD | SPI_TX_OCTAL | SPI_RX_DUAL \
6666
| SPI_RX_QUAD | SPI_RX_OCTAL \
67-
| SPI_RX_CPHA_FLIP)
67+
| SPI_RX_CPHA_FLIP | SPI_3WIRE_HIZ \
68+
| SPI_MOSI_IDLE_LOW)
6869

6970
struct spidev_data {
7071
dev_t devt;

0 commit comments

Comments
 (0)