diff mbox series

[11/13] gobi: Support only "usb" Bus values

Message ID 20241031220638.1582166-11-denkenz@gmail.com (mailing list archive)
State Accepted
Commit f5d36c1c11b9028b5bf3965aa1bb0638e56a171d
Headers show
Series [01/13] qmi: validate TLV length | expand

Commit Message

Denis Kenzior Oct. 31, 2024, 10:06 p.m. UTC
This may change in the future, but for now the gobi driver will only
support devices using the qmi_wwan network interface driver.  This
driver is limited to USB.
---
 plugins/gobi.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/plugins/gobi.c b/plugins/gobi.c
index e75a0312f6d0..6ad8a4b7f923 100644
--- a/plugins/gobi.c
+++ b/plugins/gobi.c
@@ -120,7 +120,7 @@  static void gobi_io_debug(const char *str, void *user_data)
  *   'qmi_wwan' is supported.
  *
  * Bus
- *   The bus of the modem.  Values can be "usb", "embedded", or "pci"
+ *   The bus of the modem.  Values can be "usb"
  */
 static int gobi_probe(struct ofono_modem *modem)
 {
@@ -146,6 +146,9 @@  static int gobi_probe(struct ofono_modem *modem)
 	if (!L_IN_STRSET(if_driver, "qmi_wwan"))
 		return -ENOTSUP;
 
+	if (!L_IN_STRSET(bus, "usb"))
+		return -ENOTSUP;
+
 	data = l_new(struct gobi_data, 1);
 	data->main_net_ifindex =
 		ofono_modem_get_integer(modem, "NetworkInterfaceIndex");