[PATCH v6 2/7] qmi: Added structure for device options.
Grant Erickson <[email protected]> Wed, 19 Mar 2025 12:22:29 -0700
| Newsgroups | dev.linux.lists.ofono |
|---|---|
| Message-ID | <c9277d0d9b73576a232e3df4be9e4ced7bc06244.1742411889.git.gerickson@nuovations.com> |
Defines options that may alter the default behavior of the QMI driver
for a specific, instantiated device.
---
drivers/qmimodem/qmi.h | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/drivers/qmimodem/qmi.h b/drivers/qmimodem/qmi.h
index e74ff3feaeec..4ba27847176f 100644
--- a/drivers/qmimodem/qmi.h
+++ b/drivers/qmimodem/qmi.h
@@ -74,6 +74,25 @@ enum qmi_qmux_device_quirk {
QMI_QMUX_DEVICE_QUIRK_REQ_RATE_LIMIT = 0x01
};
+/**
+ * Defines options that may alter the default behavior of the QMI
+ * driver for a specific, instantiated device.
+ */
+struct qmi_qmux_device_options {
+ /**
+ * Device-specific "quirk".
+ */
+ enum qmi_qmux_device_quirk quirks;
+
+ /**
+ * If quirks has #QMI_QMUX_DEVICE_QUIRK_REQ_RATE_LIMIT set, this
+ * is the minimum period, in microseconds, in which back-to-back
+ * QMI service requests may be sent to avoid triggering a
+ * firmware lock up and hang.
+ */
+ unsigned int min_req_period_us;
+};
+
typedef void (*qmi_destroy_func_t)(void *user_data);
struct qmi_service;
--
2.45.0