spi: soft_spi: Add support for SPI_3WIRE
authorHironori KIKUCHI <kikuchan98@gmail.com>
Fri, 31 Jan 2025 01:38:41 +0000 (10:38 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 14 Feb 2025 23:12:49 +0000 (17:12 -0600)
commit064556910e61044f1295162ceaad600582b66cda
tree4aed4e024002e949bd33a043c57e7d30898329c0
parent8fe2c68c3267b6c5885c320141d2af52d0681025
spi: soft_spi: Add support for SPI_3WIRE

When 3-wire mode is claimed on the bus, use the MOSI (output) pin to
receive data. In this mode, since the transfer can only be either TX
or RX, return -EINVAL if both are required at the same time.

Signed-off-by: Hironori KIKUCHI <kikuchan98@gmail.com>
drivers/spi/soft_spi.c