Thread (1 message) 1 message, 1 author, 2016-03-01
DORMANTno replies

[PATCH 6/6] spi: bitbang: set new SPI_FC_* flags

From: Oleksij Rempel <hidden>
Date: 2016-03-01 14:43:20
Also in: linux-spi
Subsystem: spi subsystem, the rest · Maintainers: Mark Brown, Linus Torvalds

to indicate flow control support

Signed-off-by: Oleksij Rempel <redacted>
---
 drivers/spi/spi-bitbang.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/spi-bitbang.c b/drivers/spi/spi-bitbang.c
index 3aa9e6e..5b17295 100644
--- a/drivers/spi/spi-bitbang.c
+++ b/drivers/spi/spi-bitbang.c
@@ -363,7 +363,9 @@ int spi_bitbang_start(struct spi_bitbang *bitbang)
 	mutex_init(&bitbang->lock);
 
 	if (!master->mode_bits)
-		master->mode_bits = SPI_CPOL | SPI_CPHA | bitbang->flags;
+		master->mode_bits = SPI_CPOL | SPI_CPHA |
+				    SPI_FC_READY | SPI_FC_STOP_ACK |
+				    SPI_FC_REQUEST | bitbang->flags;
 
 	if (master->transfer || master->transfer_one_message)
 		return -EINVAL;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help