You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is an exported system GPIO_X (/sys/class/gpio/gpioX) and new SPI device is registered with chip select as GPIO_X then the registration fails, but the GPIO_X is unexported from system class. Trying to reregister SPI device for second time succeeds.
So far this seems to work:
static void ath79_spi_cleanup(struct spi_device *spi)
{
if (spi->controller_state)
ath79_spi_cleanup_cs(spi);
spi_bitbang_cleanup(spi);
}
TODO: test the fix and create a patch
The text was updated successfully, but these errors were encountered:
If there is an exported system GPIO_X (/sys/class/gpio/gpioX) and new SPI device is registered with chip select as GPIO_X then the registration fails, but the GPIO_X is unexported from system class. Trying to reregister SPI device for second time succeeds.
So far this seems to work:
static void ath79_spi_cleanup(struct spi_device *spi)
{
if (spi->controller_state)
ath79_spi_cleanup_cs(spi);
spi_bitbang_cleanup(spi);
}
TODO: test the fix and create a patch
The text was updated successfully, but these errors were encountered: