summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dist/changes-5.2.03
-rw-r--r--src/serialport/qserialportinfo_unix.cpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0
index 20fd35cd..7f3e4c27 100644
--- a/dist/changes-5.2.0
+++ b/dist/changes-5.2.0
@@ -121,3 +121,6 @@ information. /dev/ttyO* (native OMAP UART) is supported by that backend.
- The lock file usage has been extended to support Android as there is no direct
access to the usual Unix lock file system paths. The lock file is now placed
into /data/local/tmp.
+
+- [QTBUG-35064] PCI support has been added to the sysfs backend on Linux to
+support the enumeration of such devices.
diff --git a/src/serialport/qserialportinfo_unix.cpp b/src/serialport/qserialportinfo_unix.cpp
index 971a904b..1ac40fdd 100644
--- a/src/serialport/qserialportinfo_unix.cpp
+++ b/src/serialport/qserialportinfo_unix.cpp
@@ -186,6 +186,8 @@ QList<QSerialPortInfo> QSerialPortInfo::availablePorts()
}
} while (targetDir.cdUp());
+ } else if (targetPath.contains(QStringLiteral("pci"))) {
+ // TODO: Obtain more information about the device
} else {
// unknown types of devices
canAppendToList = false;
@@ -287,6 +289,8 @@ QList<QSerialPortInfo> QSerialPortInfo::availablePorts()
// Skip this devices because this type of subsystem does
// not include a real physical serial device.
canAppendToList = false;
+ } else if (subsys == QStringLiteral("pci")) {
+ // TODO: Obtain more information about the device
} else { // Others types of subsystems.
// Append this devices because we believe that any other types of
// subsystems provide a real serial devices. For example, for devices