serial: T8211: fix symlink collisions for multi-port USB serial adapters#5113
Open
srnoth wants to merge 1 commit intovyos:currentfrom
Open
serial: T8211: fix symlink collisions for multi-port USB serial adapters#5113srnoth wants to merge 1 commit intovyos:currentfrom
srnoth wants to merge 1 commit intovyos:currentfrom
Conversation
Multi-port USB serial adapters (e.g., MosChip MCS7840) where all ports share the same USB ID_PATH create identical symlink names in /dev/serial/by-bus/, causing only the last-enumerated port to be accessible. Split the existing catch-all rule for devices with .ID_PORT into two cases: - Port 0: keeps the base symlink name (backward compatible) - Port 1+: appends pN suffix (e.g., usb0b1.4.1p1.0p1) Devices where each port has a unique ID_PATH (e.g., FTDI FT4232H) and single-port devices are unaffected.
|
All contributors have signed the CLA ✍️ ✅ |
|
👍 |
Author
|
I have read the CLA Document and I hereby sign the CLA |
vyosbot
added a commit
to vyos/vyos-cla-signatures
that referenced
this pull request
Apr 6, 2026
|
CI integration ❌ failed! Details
|
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.
Change summary
Multi-port USB serial adapters where all ports share the same USB
ID_PATH(e.g., MosChip MCS7840) create identical symlink names in/dev/serial/by-bus/, so only the last-enumerated port is accessible.The existing udev rule captures
.ID_PORTbut never includes it in thesymlink name. This splits the catch-all
.ID_PORTrule into two cases:pNsuffix following the existing naming schemeAdapters where each port is a separate USB interface with a unique
ID_PATH(e.g., FTDI FT4232H) and single-port devices are unaffected.Types of changes
Related Task(s)
Related PR(s)
N/A
How to test / Smoketest result
Tested on VyOS 2026.02 (circinus) with:
Before (MCS7840 — only 1 symlink per 4-port chip):
After (all 8 ports visible):
FTDI FT4232H and single-port devices unchanged. No applicable smoketest exists for udev rules.
Checklist: