[Letux-kernel] [BUG] SPI broken for SPI based panel drivers
Sven Van Asbroeck
thesven73 at gmail.com
Mon Nov 30 21:22:41 CET 2020
And probably also:
@@ -226,8 +226,7 @@ static int spi_gpio_setup(struct spi_device *spi)
if (spi_gpio->cs_gpios) {
cs = spi_gpio->cs_gpios[spi->chip_select];
if (!spi->controller_state && cs)
- status = gpiod_direction_output(cs,
- !(spi->mode & SPI_CS_HIGH));
+ status = gpiod_direction_output(cs, false);
}
if (!status)
More information about the Letux-kernel
mailing list