Index: tools/telemetry/third_party/pyserial/serial/tools/list_ports_linux.py |
diff --git a/tools/telemetry/third_party/pyserial/serial/tools/list_ports_linux.py b/tools/telemetry/third_party/pyserial/serial/tools/list_ports_linux.py |
index eb315d47d01b8ce43399040836fe2a014cdc3ed1..ecfd158bab7862a50de2120654ccc3022dc8c348 100755 |
--- a/tools/telemetry/third_party/pyserial/serial/tools/list_ports_linux.py |
+++ b/tools/telemetry/third_party/pyserial/serial/tools/list_ports_linux.py |
@@ -110,6 +110,14 @@ def describe(device): |
sys_dev_path = '/sys/class/tty/%s/device/interface' % (base,) |
if os.path.exists(sys_dev_path): |
return read_line(sys_dev_path) |
+ |
+ # USB Product Information |
+ sys_dev_path = '/sys/class/tty/%s/device' % (base,) |
+ if os.path.exists(sys_dev_path): |
+ product_name_file = os.path.dirname(os.path.realpath(sys_dev_path)) + "/product" |
+ if os.path.exists(product_name_file): |
+ return read_line(product_name_file) |
+ |
return base |
def hwinfo(device): |