diff options
author | Thomas Vogt <acc-github@tovotu.de> | 2024-06-28 15:07:51 +0200 |
---|---|---|
committer | Thomas Vogt <acc-github@tovotu.de> | 2025-05-09 07:31:31 +0200 |
commit | 4cae0406452ef4621aa7cc73f9d7a54db2ca0fb1 (patch) | |
tree | e7331cd0736ab0d005717e76bfb0f3351e6f9b74 /src/plugins/intel/mm-plugin-intel.c | |
parent | d165d61a9515061837ac12054d15dbeaeb134adf (diff) |
intel: implement support for RPC-powered xmm7360
Signed-off-by: Thomas Vogt <acc-github@tovotu.de>
Diffstat (limited to 'src/plugins/intel/mm-plugin-intel.c')
-rw-r--r-- | src/plugins/intel/mm-plugin-intel.c | 16 |
1 files changed, 11 insertions, 5 deletions
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 <stdio.h> @@ -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, |