spi-ch341-usb icon indicating copy to clipboard operation
spi-ch341-usb copied to clipboard

Linux kernel driver for CH341A USB to SPI and GPIO adapters

Results 21 spi-ch341-usb issues
Sort by recently updated
recently updated
newest added

Changes to the kernel build process have broken installation on Linux 5.4+ kernels. DKMS make.log for spi-ch341-usb-1.0.0 for kernel 5.4.0-42-generic (x86_64) Fri 31 Jul 08:56:46 BST 2020 make[1]: Entering directory...

Hi, Is there any plan to modify the driver to show up as a /dev/gpiochip0 entry instead of /sys/class/gpio? And thanks again for your work! Maybe one day it will...

I found out that plugging more than one ch341 at a time makes the driver very unhappy. The `dmesg` log complains about creating a duplicate `gpio4` file, which to me...

I just found out how to install these drivers on red hat-based distros: you just need to change the seventh line (the one that says ```KERNEL_DIR = /usr/src/linux-headers-$(KVERSION)/```) to ```KERNEL_DIR...

Would be very helpful to get some instructions on how to build the driver for Arch linux. The kernel source layout seems to be different: ``` linux-headers /usr/lib/modules/4.15.5-1-ARCH/ ``` and...

* [The comment](https://github.com/gschorcht/spi-ch341-usb/blob/master/spi-ch341-usb.c#L490) does not match the oode. * The `if` and `else` branches seem identical. * `SCK_H` and `SCK_L` probably need to be swapped between the two lines. *...

I recommend the MIT license

In order to use this in Ubuntu 22 I had to change i2c-ch341-usb.c line 660 from `ch341_dev->irq_descs[i] = irq_to_desc(ch341_dev->irq_base + i);` to `ch341_dev->irq_descs[i] = irq_data_to_desc(irq_get_irq_data(ch341_dev->irq_base + i));` After this it...

Trying to `make` and ```make -C /lib/modules/6.5.4-arch2-1/build M=/home/sc/t/spi-ch341-usb modules make[1]: Entering directory '/usr/lib/modules/6.5.4-arch2-1/build' CC [M] /home/sc/t/spi-ch341-usb/spi-ch341-usb.o /home/sc/t/spi-ch341-usb/spi-ch341-usb.c:163:30: error: field 'gpio' has incomplete type 163 | struct gpio_chip gpio; // chip...

I've used your driver for some time on my 20.04 Ubuntu Mate installation but when I had my co-worker build and install it on his 22.04 Ubuntu it builds but...