Fix common USB matching options for riello_usb (richcomm and nutdrv_atcl too, but reverted)#1763
Merged
jimklimov merged 5 commits intonetworkupstools:masterfrom Jan 4, 2023
Conversation
This was referenced Jan 4, 2023
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Jan 4, 2023
…de nut_usb_addvars.txt [networkupstools#1763]
Member
Author
Member
Author
|
"Screenshots":
|
Member
Author
|
Trying same with |
This was referenced Jan 5, 2023
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Jan 11, 2023
This was referenced Jan 11, 2023
jimklimov
added a commit
to efuss/nut
that referenced
this pull request
Jan 22, 2023
….c: sync naming changes with drivers/libusb1.c [networkupstools#1819, networkupstools#1763, networkupstools#1764]
This was referenced Sep 16, 2023
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Aug 10, 2024
…duct(id), and serial options for bcmxcp_usb, richcomm_usb, nutdrv_atcl_usb [networkupstools#1763, networkupstools#1764, networkupstools#1768, networkupstools#2580] Signed-off-by: Jim Klimov <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Should fix (or at least provide a way for possible fix) #1754 and #1744 among other issues. This might not completely remove the need for #1756 but should alleviate the problem of monitoring multiple related devices of certain vendors/protocols where we can individually discern them by device/bus/serial fields.
Thanks to @shgubar for convincing me that the bug is there (many drivers solved it long ago), and to trace the code with more attention.
Note: "bcmxcp_usb" driver suffers a similar problem but was not easy to fix in a similar fashion (conflicts with symbols in the built
LIBUSB_IMPLof the day, and impacts nut-scanner build per different dependency chain), so attempt to fix it along with others was shelved.A side note from debugging: the regex-matching in usb-common.c is not logged in full detail because array elements are not interactively useful (precompiled regexes, not original strings).