spi-ch341-usb
spi-ch341-usb copied to clipboard
Linux kernel driver for CH341A USB to SPI and GPIO adapters
Fix for building on 5.4.+ kernels. SUBDIRS is no longer parsed by kBuild.
Fixed compilation and link errors; Adapted for gpiod usage; Fixed interrupt handler warning.
Around line 796, there's irq_to_desc which shouldn't be used in a module. afaik, it's for kernel use only. See https://patchwork.kernel.org/project/linux-rdma/patch/[email protected]/ Kernel 5.10 and on won't export irq_to_desc any longer. As...
I'm having an issue where the SPI communication times out after 32 bytes.. Documentation for this boards is obviously slim.. any idea why that might be or is it a...
I tried to compile and insert in Mageia Linux 5.15.23-desktop-1.mga8 and an old computer with Debian Linux too. The Debian could compile and start /dev/spidev0.0-2 auto, but Mageia doesn't creates...
using kernel 5.16 make fails to build, here is the output: > make make -C /lib/modules/5.16.8-arch1-1/build M=/home/winford/github/gschorcht/spi-ch341-usb modules make[1]: Entering directory '/usr/lib/modules/5.16.8-arch1-1/build' CC [M] /home/winford/github/gschorcht/spi-ch341-usb/spi-ch341-usb.o /home/winford/github/gschorcht/spi-ch341-usb/spi-ch341-usb.c: In function ‘ch341_spi_probe’: /home/winford/github/gschorcht/spi-ch341-usb/spi-ch341-usb.c:598:33:...
After I installed the driver, I don't see any /dev/spidev and I got these warnings in 'dmesg': [11212.412026] spi_ch341_usb: Unknown symbol spi_unregister_device (err 0) [11212.412046] spi_ch341_usb: Unknown symbol spi_finalize_current_transfer (err...
Alas, I haven't yet packed this up as a nice PR. Are you still maintaining this project? If so, I can scrub my changes to collapse commits into something more...
On the newer kernels ( 5.3.7 at least ) the compilation fails with ``` spi-ch341-usb/spi-ch341-usb.c:623:45: error: implicit declaration of function ‘SPI_BIT_MASK’; did you mean ‘SPI_BPW_MASK’? [-Werror=implicit-function-declaration] ```
Hello, I would like to use the character device interface /dev/gpiochip1. The sysfs interface works perfectly fine ``` # echo 1 > /sys/class/gpio/gpio0/value # echo 0 > /sys/class/gpio/gpio0/value ``` but...