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
5 api-bitbang has to call the chipselect function on the ath79 SPI driver
6 in order to communicate with the SPI slave device.
8 Fixes commit 4a07b8bcd503 ("spi: bitbang: Make chipselect callback optional")
10 Signed-off-by: David Bauer <mail@david-bauer.net>
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
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;
20 sp->bitbang.master = master;
21 sp->bitbang.chipselect = ath79_spi_chipselect;