forked from frank-zago/ch341-i2c-spi-gpio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes frank-zago#29
- Loading branch information
Showing
3 changed files
with
2 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
793ea2f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But spi is a client of gpio. If spi is active, it uses some pins from gpio, which other applications must then not use.
793ea2f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No other gpio drivers in the kernel tree right now load other drivers and what you're doing here causes an issue with deregistering devices as seen in frank-zago#29.
With the above changes, all that happens is:
no gpio driver loaded, loads spi driver:
loading gpio driver after spi driver works successfully
both drivers loaded, unloads gpio driver:
rmmod: ERROR: Module gpio_ch341 is in use