[PATCH 03/10] qmi: Added structure for device options.
Grant Erickson <[email protected]> Tue, 11 Feb 2025 21:52:52 -0800
| Newsgroups | dev.linux.lists.ofono |
|---|---|
| Message-ID | <92dd49e261569657414c1e43825cbe8928ace900.1739339173.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 913035897ea4..3f60e90c015a 100644
--- a/drivers/qmimodem/qmi.h
+++ b/drivers/qmimodem/qmi.h
@@ -76,6 +76,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