7bbf4117c6
This add support for kernel 4.9 to the ar71xx target. It was compile tested with the generic, NAND and mikrotik subtarget. Multiple members of the community tested it on their boards and did not report any major problem so far. Especially the NAND part received some changes to adapt to the new kernel APIs. The serial driver hack used for the Arduino Yun was not ported because the kernel changed there a lot. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
19 lines
557 B
Diff
19 lines
557 B
Diff
From: Felix Fietkau <nbd@nbd.name>
|
|
Date: Fri, 9 Dec 2016 20:11:35 +0100
|
|
Subject: [PATCH] spi: spi-ath79: use gpio_set_value_cansleep for GPIO chip
|
|
select
|
|
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
---
|
|
|
|
--- a/drivers/spi/spi-ath79.c
|
|
+++ b/drivers/spi/spi-ath79.c
|
|
@@ -80,7 +80,7 @@ static void ath79_spi_chipselect(struct
|
|
|
|
if (gpio_is_valid(spi->cs_gpio)) {
|
|
/* SPI is normally active-low */
|
|
- gpio_set_value(spi->cs_gpio, cs_high);
|
|
+ gpio_set_value_cansleep(spi->cs_gpio, cs_high);
|
|
} else {
|
|
u32 cs_bit = AR71XX_SPI_IOC_CS(spi->chip_select);
|
|
|