summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffy Chen <jeffy.chen@rock-chips.com>2017-06-28 12:38:42 +0800
committerJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>2018-05-09 15:26:54 +0200
commit2f3f831e8f5331e6a37203afa0f2565f439e79cf (patch)
treefe872814474ae8fb0ad874bbb08400e3055c69a3
parent304f741c4715c0efa9bcc0d7dafd74cfcbd6b73b (diff)
spi: rockchip: Set GPIO_SS flag to enable Slave Select with GPIO CS
The rockchip spi still requires slave selection when using GPIO CS. Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-rockchip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c
index e9a2fe324168..98ecf4c6ef61 100644
--- a/drivers/spi/spi-rockchip.c
+++ b/drivers/spi/spi-rockchip.c
@@ -728,6 +728,7 @@ static int rockchip_spi_probe(struct platform_device *pdev)
master->unprepare_message = rockchip_spi_unprepare_message;
master->transfer_one = rockchip_spi_transfer_one;
master->handle_err = rockchip_spi_handle_err;
+ master->flags = SPI_MASTER_GPIO_SS;
rs->dma_tx.ch = dma_request_slave_channel(rs->dev, "tx");
if (IS_ERR_OR_NULL(rs->dma_tx.ch)) {