diff options
author | David Bauer <mail@david-bauer.net> | 2021-04-29 14:07:01 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2021-05-01 13:17:41 +0200 |
commit | a1d405ff8a596e5bd23a2525204f9d9070f8cac5 (patch) | |
tree | 72a3a7c3239d8f2b12758be80df70ab2ed565940 /target/linux | |
parent | df07bafcd2c79e67a09a724b3d88cea394df8677 (diff) | |
download | upstream-a1d405ff8a596e5bd23a2525204f9d9070f8cac5.tar.gz upstream-a1d405ff8a596e5bd23a2525204f9d9070f8cac5.tar.bz2 upstream-a1d405ff8a596e5bd23a2525204f9d9070f8cac5.zip |
ath79: add SPI_MASTER_GPIO_SS flag
Add the SPI_MASTER_GPIO_SS flag for the spi-ath79 driver. Otherwise,
the custom chipselect function is never called. This breaks hardware,
where the three dedicated chipselect lines are used instead of generic
GPIO pins.
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ath79/patches-5.10/411-spi-ath79-add-SPI_MASTER_GPIO_SS-flag.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/ath79/patches-5.10/411-spi-ath79-add-SPI_MASTER_GPIO_SS-flag.patch b/target/linux/ath79/patches-5.10/411-spi-ath79-add-SPI_MASTER_GPIO_SS-flag.patch new file mode 100644 index 0000000000..0a81ecd6f7 --- /dev/null +++ b/target/linux/ath79/patches-5.10/411-spi-ath79-add-SPI_MASTER_GPIO_SS-flag.patch @@ -0,0 +1,27 @@ +From 55e2fff639d4297ffeb478113aef6d3e26c2c4c2 Mon Sep 17 00:00:00 2001 +From: David Bauer <mail@david-bauer.net> +Date: Wed, 17 Feb 2021 02:44:55 +0100 +Subject: [PATCH 1/2] spi: ath79: add SPI_MASTER_GPIO_SS flag + +Add the SPI_MASTER_GPIO_SS flag for the spi-ath79 driver. Otherwise, +the custom chipselect function is never called. This breaks hardware, +where the three dedicated chipselect lines are used instead of generic +GPIO pins. + +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(+) + +--- a/drivers/spi/spi-ath79.c ++++ b/drivers/spi/spi-ath79.c +@@ -186,6 +186,7 @@ static int ath79_spi_probe(struct platfo + + master->use_gpio_descriptors = true; + master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32); ++ master->flags = SPI_MASTER_GPIO_SS; + + sp->bitbang.master = master; + sp->bitbang.chipselect = ath79_spi_chipselect; |