mediatek: fix Ubiquiti UniFi 6 LR LED
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / patches-5.10 / 0051-spi-ath79-always-call-chipselect-function.patch
1 From: David Bauer <mail@david-bauer.net>
2 Date: Wed, 17 Feb 2021 02:44:55 +0100
3 Subject: [PATCH] spi: ath79: always call chipselect function
4
5 api-bitbang has to call the chipselect function on the ath79 SPI driver
6 in order to communicate with the SPI slave device.
7
8 Fixes commit 4a07b8bcd503 ("spi: bitbang: Make chipselect callback optional")
9
10 Signed-off-by: David Bauer <mail@david-bauer.net>
11
12 --- a/drivers/spi/spi-ath79.c
13 +++ b/drivers/spi/spi-ath79.c
14 @@ -152,6 +152,7 @@ static int ath79_spi_probe(struct platfo
15
16 master->use_gpio_descriptors = true;
17 master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32);
18 + master->flags = SPI_MASTER_GPIO_SS;
19
20 sp->bitbang.master = master;
21 sp->bitbang.chipselect = ath79_spi_chipselect;