Skip to content

Automatically detach ftdi_sio driver#6

Merged
engdoreis merged 2 commits intomainfrom
ftdi_unbind
Apr 15, 2026
Merged

Automatically detach ftdi_sio driver#6
engdoreis merged 2 commits intomainfrom
ftdi_unbind

Conversation

@engdoreis
Copy link
Copy Markdown
Collaborator

No description provided.

@engdoreis engdoreis changed the title wip: Automatically detach ftdi_sio driver Automatically detach ftdi_sio driver Apr 15, 2026
Copy link
Copy Markdown

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for adding this!

Comment thread lib/ftdi/libusb.hh Outdated
Comment thread app/main.cc

static std::vector<ftdi::DeviceInfo> scan() {
auto result = ftdi::Discovery::scan();
static std::vector<ftdi::DeviceInfo> scan(uint16_t pid = 0x6010) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to default to the FT2232H/D, but should this default pid be behind a named constant?

This function was written with the help of claude code.

Signed-off-by: Douglas Reis <doreis@lowrisc.org>
In linux the kernel will automatically bind the ftdi device to the
ftdi_sio driver, this prevents the lib D2XX to discover the ftdi.

Signed-off-by: Douglas Reis <doreis@lowrisc.org>
@engdoreis engdoreis merged commit 1d7a587 into main Apr 15, 2026
1 check passed
@engdoreis engdoreis deleted the ftdi_unbind branch April 15, 2026 15:00
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

Successfully merging this pull request may close these issues.

2 participants