Re: [BUG] SPI broken for SPI based panel drivers

From: Sven Van Asbroeck
Date: Mon Nov 30 2020 - 15:24:00 EST


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)