105-spi-spi-ath79-use-gpio_set_value_cansleep-for-GPIO-c.patch 557 B

12345678910111213141516171819
  1. From: Felix Fietkau <nbd@nbd.name>
  2. Date: Fri, 9 Dec 2016 20:11:35 +0100
  3. Subject: [PATCH] spi: spi-ath79: use gpio_set_value_cansleep for GPIO chip
  4. select
  5. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  6. ---
  7. --- a/drivers/spi/spi-ath79.c
  8. +++ b/drivers/spi/spi-ath79.c
  9. @@ -80,7 +80,7 @@ static void ath79_spi_chipselect(struct
  10. if (gpio_is_valid(spi->cs_gpio)) {
  11. /* SPI is normally active-low */
  12. - gpio_set_value(spi->cs_gpio, cs_high);
  13. + gpio_set_value_cansleep(spi->cs_gpio, cs_high);
  14. } else {
  15. u32 cs_bit = AR71XX_SPI_IOC_CS(spi->chip_select);