mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
Revert "spi: spidev: Fix CS polarity if GPIO descriptors are used"
This reverts commit 83b2a8fe43.
This commit is contained in:
@@ -428,7 +428,7 @@ spidev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ctlr->use_gpio_descriptors && spi_get_csgpiod(spi, 0))
|
if (ctlr->use_gpio_descriptors && spi_get_csgpiod(spi, 0))
|
||||||
tmp |= SPI_CS_HIGH;
|
{ /*tmp |= SPI_CS_HIGH;*/ }
|
||||||
|
|
||||||
tmp |= spi->mode & ~SPI_MODE_MASK;
|
tmp |= spi->mode & ~SPI_MODE_MASK;
|
||||||
spi->mode = tmp & SPI_MODE_USER_MASK;
|
spi->mode = tmp & SPI_MODE_USER_MASK;
|
||||||
|
|||||||
Reference in New Issue
Block a user