Commit ea1812b
committed
resource: udev: also suggest ID_USB_INTERFACE_NUM for USBResource
A USB serial device often provides multiple interfaces for the same
serial number. In these cases it is not possible to distinguish
the interfaces solely based on the serial number (ID_SERIAL_SHORT).
However, if additionally the interface number (ID_USB_INTERFACE_NUM)
is provided, it is possible to distinguish all interfaces without
the need of using the full device path (ID_PATH).
Example:
(...)
=== suggested matches ===
(...)
USBSerialPort:
match:
ID_SERIAL_SHORT: ABCDEF00001
ID_USB_INTERFACE_NUM: '00'
(...)
=== suggested matches ===
(...)
USBSerialPort:
match:
ID_SERIAL_SHORT: ABCDEF00001
ID_USB_INTERFACE_NUM: '01'
Signed-off-by: Joerg Hofrichter <joerg.hofrichter@ni.com>1 parent be28ac1 commit ea1812b
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
| 103 | + | |
98 | 104 | | |
99 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
100 | 110 | | |
101 | 111 | | |
102 | 112 | | |
| |||
0 commit comments