From 4cae0406452ef4621aa7cc73f9d7a54db2ca0fb1 Mon Sep 17 00:00:00 2001 From: Thomas Vogt Date: Fri, 28 Jun 2024 15:07:51 +0200 Subject: intel: implement support for RPC-powered xmm7360 Signed-off-by: Thomas Vogt --- src/plugins/intel/mm-plugin-intel.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/plugins/intel/mm-plugin-intel.c') diff --git a/src/plugins/intel/mm-plugin-intel.c b/src/plugins/intel/mm-plugin-intel.c index 20392114..571c0a0a 100644 --- a/src/plugins/intel/mm-plugin-intel.c +++ b/src/plugins/intel/mm-plugin-intel.c @@ -11,6 +11,7 @@ * GNU General Public License for more details: * * Copyright (C) 2021-2022 Intel Corporation + * Copyright (c) 2024 Thomas Vogt */ #include @@ -23,6 +24,7 @@ #include "mm-log-object.h" #include "mm-broadband-modem.h" +#include "mm-broadband-modem-xmm7360.h" #if defined WITH_MBIM #include "mm-broadband-modem-mbim-intel.h" #endif @@ -57,15 +59,19 @@ create_modem (MMPlugin *self, #endif if (mm_port_probe_list_has_xmmrpc_port (probes)) { - mm_obj_dbg (self, "Intel modem with RPC control port found..."); if (product == 0x7360) { - g_set_error_literal (error, MM_CORE_ERROR, MM_CORE_ERROR_UNSUPPORTED, - "Intel XMM7360 in RPC mode not supported"); - return NULL; + mm_obj_dbg (self, "Intel XMM7360 in RPC mode found..."); + return MM_BASE_MODEM (mm_broadband_modem_xmm7360_new (uid, + physdev, + drivers, + mm_plugin_get_name (self), + vendor, + product)); + } else { + mm_obj_dbg (self, "Ignoring unknown XMMRPC control port..."); } } - mm_obj_dbg (self, "Generic Intel modem found..."); return MM_BASE_MODEM (mm_broadband_modem_new (uid, physdev, -- cgit v1.2.3-70-g09d2