Linux: cannot use 'spidev' device after using gpiod on chip select pin
Embedded Linux question: I'm reading/writing a SPI device via spidev perfectly fine. I have the need to manually assert the active-low chip select pin (setting it low for extended periods of time) which I am doing through libgpiod. This works.
However, after the manual control, spidev is no longer able to control the chip-select pin - meaning I cannot talk to my peripheral. I can rebuild my spi controller as a module, and a rmmod/insmod gets the spidev device to work again. However, this is not really a tenable solution. What is the best way to get the chip select back under spidev's control?
|