[PATCH] zte: allow MBIM devices
Aleksander Morgado
aleksander at aleksander.es
Wed Feb 12 09:42:19 CET 2014
On Wed, Feb 12, 2014 at 8:31 AM, Ben Chan <benchan at chromium.org> wrote:
> ---
> plugins/zte/mm-plugin-zte.c | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
Pushed to git master, thanks!
> diff --git a/plugins/zte/mm-plugin-zte.c b/plugins/zte/mm-plugin-zte.c
> index 496ccf2..c2c31d0 100644
> --- a/plugins/zte/mm-plugin-zte.c
> +++ b/plugins/zte/mm-plugin-zte.c
> @@ -30,6 +30,10 @@
> #include "mm-broadband-modem-qmi.h"
> #endif
>
> +#if defined WITH_MBIM
> +#include "mm-broadband-modem-mbim.h"
> +#endif
> +
> G_DEFINE_TYPE (MMPluginZte, mm_plugin_zte, MM_TYPE_PLUGIN)
>
> int mm_plugin_major_version = MM_PLUGIN_MAJOR_VERSION;
> @@ -75,6 +79,17 @@ create_modem (MMPlugin *self,
> }
> #endif
>
> +#if defined WITH_MBIM
> + if (mm_port_probe_list_has_mbim_port (probes)) {
> + mm_dbg ("MBIM-powered ZTE modem found...");
> + return MM_BASE_MODEM (mm_broadband_modem_mbim_new (sysfs_path,
> + drivers,
> + mm_plugin_get_name (self),
> + vendor,
> + product));
> + }
> +#endif
> +
> if (mm_port_probe_list_is_icera (probes))
> return MM_BASE_MODEM (mm_broadband_modem_zte_icera_new (sysfs_path,
> drivers,
> @@ -158,6 +173,7 @@ mm_plugin_create (void)
> MM_PLUGIN_ALLOWED_AT, TRUE,
> MM_PLUGIN_ALLOWED_QCDM, TRUE,
> MM_PLUGIN_ALLOWED_QMI, TRUE,
> + MM_PLUGIN_ALLOWED_MBIM, TRUE,
> MM_PLUGIN_ICERA_PROBE, TRUE,
> NULL));
> }
> --
> 1.9.0.rc1.175.g0b1dcb5
>
> _______________________________________________
> ModemManager-devel mailing list
> ModemManager-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list