frank-zago / ch341-i2c-spi-gpio

WinChipHead CH341 linux driver for I2C, SPI and GPIO mode
GNU General Public License v2.0
70 stars 29 forks source link

Heavy spi module refactor #32

Open mjsir911 opened 8 months ago

mjsir911 commented 8 months ago

Takes advantage of existing kernel procedures for gpio handling mostly, some resource management and device loading too.

Oh, this actually doesn't work because:

Also regresses the spi driver behaviour by claiming all CS pins / spi busses immediately. It would be cool to be able to load/unload individual busses individually (like we've previously been able to do), if there's some convention on how to do that within the kernel that would be a good start. This probably also means not relying on the kernel's csgpiod handling as much.

mjsir911 commented 8 months ago

Okay yeah I got clued in about multiple devices and spi does fail to load on the second device plugged in.