Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jp-bennett opened this issue Apr 15, 2024 · 2 comments
Open

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

jp-bennett opened this issue Apr 15, 2024 · 2 comments

Comments

@jp-bennett
Copy link

jp-bennett commented Apr 15, 2024

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.

@frank-zago
Copy link
Owner

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

@jp-bennett
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants