All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] spi: ath79: always call chipselect function
@ 2021-03-03 16:08 David Bauer
  2021-03-03 16:08 ` [PATCH 2/2] spi: ath79: remove spi-master setup and cleanup assignment David Bauer
  2021-03-04 18:31 ` [PATCH 1/2] spi: ath79: always call chipselect function Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: David Bauer @ 2021-03-03 16:08 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi

spi-bitbang has to call the chipselect function on the ath79 SPI driver
in order to communicate with the SPI slave device, as the ath79 SPI
driver has three dedicated chipselect lines but can also be used with
GPIOs for the CS lines.

Fixes commit 4a07b8bcd503 ("spi: bitbang: Make chipselect callback optional")

Signed-off-by: David Bauer <mail@david-bauer.net>
---
 drivers/spi/spi-ath79.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c
index eb9a243e9526..436327fb58de 100644
--- a/drivers/spi/spi-ath79.c
+++ b/drivers/spi/spi-ath79.c
@@ -158,6 +158,7 @@ static int ath79_spi_probe(struct platform_device *pdev)
 	master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32);
 	master->setup = spi_bitbang_setup;
 	master->cleanup = spi_bitbang_cleanup;
+	master->flags = SPI_MASTER_GPIO_SS;
 	if (pdata) {
 		master->bus_num = pdata->bus_num;
 		master->num_chipselect = pdata->num_chipselect;
-- 
2.30.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-04 18:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03 16:08 [PATCH 1/2] spi: ath79: always call chipselect function David Bauer
2021-03-03 16:08 ` [PATCH 2/2] spi: ath79: remove spi-master setup and cleanup assignment David Bauer
2021-03-04 18:31 ` [PATCH 1/2] spi: ath79: always call chipselect function Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.