Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ath79-spi unregisters gpio #43

Open
GiedriusM opened this issue Nov 7, 2014 · 0 comments
Open

ath79-spi unregisters gpio #43

GiedriusM opened this issue Nov 7, 2014 · 0 comments
Labels

Comments

@GiedriusM
Copy link
Contributor

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

@GiedriusM GiedriusM added the bug label Nov 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant