diff mbox

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

Message ID 1456843400-20696-6-git-send-email-linux@rempel-privat.de (mailing list archive)
State New, archived
Headers show

Commit Message

Oleksij Rempel March 1, 2016, 2:43 p.m. UTC
to indicate flow control support

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
---
 drivers/spi/spi-bitbang.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

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;