ath79: fix sorting in generic 02_network
[openwrt/staging/zorun.git] / target / linux / ath79 / patches-5.10 / 411-spi-ath79-add-SPI_MASTER_GPIO_SS-flag.patch
1 From 55e2fff639d4297ffeb478113aef6d3e26c2c4c2 Mon Sep 17 00:00:00 2001
2 From: David Bauer <mail@david-bauer.net>
3 Date: Wed, 17 Feb 2021 02:44:55 +0100
4 Subject: [PATCH 1/2] spi: ath79: add SPI_MASTER_GPIO_SS flag
5
6 Add the SPI_MASTER_GPIO_SS flag for the spi-ath79 driver. Otherwise,
7 the custom chipselect function is never called. This breaks hardware,
8 where the three dedicated chipselect lines are used instead of generic
9 GPIO pins.
10
11 Fixes commit 4a07b8bcd503 ("spi: bitbang: Make chipselect callback optional")
12
13 Signed-off-by: David Bauer <mail@david-bauer.net>
14 ---
15 drivers/spi/spi-ath79.c | 1 +
16 1 file changed, 1 insertion(+)
17
18 --- a/drivers/spi/spi-ath79.c
19 +++ b/drivers/spi/spi-ath79.c
20 @@ -186,6 +186,7 @@ static int ath79_spi_probe(struct platfo
21
22 master->use_gpio_descriptors = true;
23 master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32);
24 + master->flags = SPI_MASTER_GPIO_SS;
25
26 sp->bitbang.master = master;
27 sp->bitbang.chipselect = ath79_spi_chipselect;