Commit 6d3a7cb
committed
linux: list_ports use interface path for multi location
On devices with multiple serial interfaces, like FT4232,
the usb_device path is the same for all interfaces, so hwid does
not uniquely identify the interface.
So in this case use the basename of the interface directory.
Single interface:
hwid: USB VID:PID=0403:6015 SER=DN00RHW0 LOCATION=3-1.1
Multiple interface:
hwid: USB VID:PID=0403:6011 SER=FT97WK0I LOCATION=3-1.2:1.1
Signed-off-by: Eliot Blennerhassett <[email protected]>1 parent d389f8a commit 6d3a7cb
1 file changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
41 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
42 | 53 | | |
43 | 54 | | |
44 | 55 | | |
| |||
0 commit comments