summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffy Chen <jeffy.chen@rock-chips.com>2017-06-28 12:38:42 +0800
committerKlaus Goger <klaus.goger@theobroma-systems.com>2018-05-08 10:57:32 +0200
commit009cdd894bed08fe2bbb5ef2f8662d5817ad15a2 (patch)
tree915c7f364a526134c0a3afedc71e3888e293abad
parentc3aaa0c83503cde77dd1f73eb379b45be2ddf1c1 (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)) {