Re: [PATCH] spi: spidev: Fix CS polarity if GPIO descriptors are used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 20, 2020 at 07:11:22AM +0100, Lukas Wunner wrote:
> -	if (spi->mode & SPI_CS_HIGH)
> +	if (spi->mode & SPI_CS_HIGH && !(ctlr->use_gpio_descriptors &&
> +					 ctlr->cs_gpiods &&
> +					 ctlr->cs_gpiods[spi->chip_select]))
> 		enable = !enable;

Sorry, I meant (spi->mode & SPI_CS_HIGH || (ctlr->...)
                                        ^^^^



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux