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

Support setting the module detach mode. #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benkard
Copy link

@benkard benkard commented Apr 4, 2022

The module detach mode, a feature added in libFTDI 1.5, determines whether any kernel module (on Linux: ftdi_sio) attached to the device should automatically be detached before connecting and/or reattached after closing the device. Without it, this must be handled separately in ways that are less straight-forward (such as through sysfs).

The libFTDI default is AUTO_DETACH_SIO_MODULE, so this patch defaults to that as well.

The module detach mode, a feature added in libFTDI 1.5, determines
whether any kernel module (on Linux: ftdi_sio) attached to the device
should automatically be detached before connecting and/or reattached
after closing the device.  Without it, this must be handled
separately in ways that are less straight-forward (such as through
sysfs).

The libFTDI default is AUTO_DETACH_SIO_MODULE, so this patch defaults to
that as well.
@tanriol
Copy link
Owner

tanriol commented Apr 4, 2022

Hello and thanks for your contribution. Sorry for delays, I'll try to review your PRs in a few days.

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