diff options
author | David Bauer <mail@david-bauer.net> | 2021-02-17 01:29:44 +0100 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2021-02-20 01:26:33 +0100 |
commit | d6b785d47739a84611088ab26256fa5808d06a9d (patch) | |
tree | d45ffa6e6182ce80ec35663de8c514888655e1b8 /target/linux/ath79/patches-5.10/0051-spi-ath79-always-call-chipselect-function.patch | |
parent | fb64e2c30f0cba887d3b183ce52de36b3e8bbb7e (diff) | |
download | upstream-d6b785d47739a84611088ab26256fa5808d06a9d.tar.gz upstream-d6b785d47739a84611088ab26256fa5808d06a9d.tar.bz2 upstream-d6b785d47739a84611088ab26256fa5808d06a9d.zip |
ath79: add kernel 5.10 support
This adds Kernel 5.10 support for the generic, nand and tiny subtargets.
The following patch is not contained, as it needs to be reworked:
platform/920-mikrotik-rb4xx.patch
Tested-on:
- Siemens WS-AP3610
- Enterasys WS-AP3710
- Aerohive HiveAP 121
- TP-Link TL-WA901 v2
- TP-Link TL-WR741 v1
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ath79/patches-5.10/0051-spi-ath79-always-call-chipselect-function.patch')
-rw-r--r-- | target/linux/ath79/patches-5.10/0051-spi-ath79-always-call-chipselect-function.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/ath79/patches-5.10/0051-spi-ath79-always-call-chipselect-function.patch b/target/linux/ath79/patches-5.10/0051-spi-ath79-always-call-chipselect-function.patch new file mode 100644 index 0000000000..746f9035a6 --- /dev/null +++ b/target/linux/ath79/patches-5.10/0051-spi-ath79-always-call-chipselect-function.patch @@ -0,0 +1,21 @@ +From: David Bauer <mail@david-bauer.net> +Date: Wed, 17 Feb 2021 02:44:55 +0100 +Subject: [PATCH] spi: ath79: always call chipselect function + +api-bitbang has to call the chipselect function on the ath79 SPI driver +in order to communicate with the SPI slave device. + +Fixes commit 4a07b8bcd503 ("spi: bitbang: Make chipselect callback optional") + +Signed-off-by: David Bauer <mail@david-bauer.net> + +--- a/drivers/spi/spi-ath79.c ++++ b/drivers/spi/spi-ath79.c +@@ -152,6 +152,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; |