fa04682f21
Remove various hacks for fast read, un-break device tree support Signed-off-by: Felix Fietkau <nbd@nbd.name>
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);
|
|
|