frank-zago/ch341-i2c-spi-gpio

Driver doesn't support 0-length transfers to control CS line

Opened this issue · 2 comments

Edit: this is using the device as SPI.
We use a 0-length ioctl transfer to control the CS:

    xfer.tx_buf = NULL;
    xfer.len = 0;

    xfer.rx_buf = NULL
    xfer.cs_change = true; //(or false)

This is returning a 110 timeout error. Instead, it should either enable or disable the CS line.

A different driver for SPI only has been merged in the kernel 6.11 (spi-ch341.ko). Maybe this one will work.

A different driver for SPI only has been merged in the kernel 6.11 (spi-ch341.ko). Maybe this one will work.

Exciting that a driver has made the kernel. The only downside is it doesn't expose the other pins as GPIO. Thanks for the info!