[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200511045330.690507-1-alistair@alistair23.me>
Date: Sun, 10 May 2020 21:53:30 -0700
From: Alistair Francis <alistair@...stair23.me>
To: broonie@...nel.org, linux-spi@...r.kernel.org
Cc: mripard@...nel.org, wens@...e.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
alistair23@...il.com, Alistair Francis <alistair@...stair23.me>
Subject: [PATCH v2] spi: sun6i: Add support for GPIO chip select lines
Set use_gpio_descriptors as true to support using generic GPIO
lines for the chip select.
Signed-off-by: Alistair Francis <alistair@...stair23.me>
---
v2:
- Use use_gpio_descriptors instead of spi_setup
drivers/spi/spi-sun6i.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/spi-sun6i.c b/drivers/spi/spi-sun6i.c
index ec7967be9e2f..ecea15534c42 100644
--- a/drivers/spi/spi-sun6i.c
+++ b/drivers/spi/spi-sun6i.c
@@ -470,6 +470,7 @@ static int sun6i_spi_probe(struct platform_device *pdev)
master->max_speed_hz = 100 * 1000 * 1000;
master->min_speed_hz = 3 * 1000;
+ master->use_gpio_descriptors = true;
master->set_cs = sun6i_spi_set_cs;
master->transfer_one = sun6i_spi_transfer_one;
master->num_chipselect = 4;
--
2.26.2
Powered by blists - more mailing lists