<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">> Pushed to git master after fixing up the change in the file mode line,<br>
> which I assume wasn't on purpose :)</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Indeed, I don't even know how I made it :D</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 August 2017 at 11:20, Aleksander Morgado <span dir="ltr"><<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Aug 29, 2017 at 9:15 AM, Carlo Lobrano <<a href="mailto:c.lobrano@gmail.com">c.lobrano@gmail.com</a>> wrote:<br>
> Currently when the modem is disabled, it releases SIM hot swap ports context,<br>
> and is not able to receive any notification about the SIM status.<br>
><br>
> This patch keeps these ports opened when Modem is disabled and released them<br>
> only when SIM swap is detected or when modem is released.<br>
> ---<br>
><br>
> If I understood correctly, the only change was to be done in broadband modem's finalize.<br>
> I also looked at enabled_ports_ctx as reference and it seems there are not other places to<br>
> relese the port contexts.<br>
><br>
<br>
</span>Pushed to git master after fixing up the change in the file mode line,<br>
which I assume wasn't on purpose :)<br>
<br>
Thanks!<br>
<div><div class="h5"><br>
> ---<br>
><br>
> src/mm-broadband-modem.c | 10 ++++------<br>
> 1 file changed, 4 insertions(+), 6 deletions(-)<br>
><br>
> diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c<br>
> index 552bdc5..b298721 100644<br>
> --- a/src/mm-broadband-modem.c<br>
> +++ b/src/mm-broadband-modem.c<br>
> @@ -1,5 +1,4 @@<br>
> -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */<br>
> -/*<br>
> +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- *//*<br>
> * This program is free software; you can redistribute it and/or modify<br>
> * it under the terms of the GNU General Public License as published by<br>
> * the Free Software Foundation; either version 2 of the License, or<br>
> @@ -8640,10 +8639,6 @@ disabling_stopped (MMBroadbandModem *self,<br>
> self->priv->enabled_ports_ctx = NULL;<br>
> }<br>
><br>
> - if (self->priv->sim_hot_swap_<wbr>ports_ctx) {<br>
> - ports_context_unref (self->priv->sim_hot_swap_<wbr>ports_ctx);<br>
> - self->priv->sim_hot_swap_<wbr>ports_ctx = NULL;<br>
> - }<br>
> return TRUE;<br>
> }<br>
><br>
> @@ -10661,6 +10656,9 @@ finalize (GObject *object)<br>
> if (self->priv->enabled_ports_<wbr>ctx)<br>
> ports_context_unref (self->priv->enabled_ports_<wbr>ctx);<br>
><br>
> + if (self->priv->sim_hot_swap_<wbr>ports_ctx)<br>
> + ports_context_unref (self->priv->sim_hot_swap_<wbr>ports_ctx);<br>
> +<br>
> if (self->priv->modem_3gpp_<wbr>registration_regex)<br>
> mm_3gpp_creg_regex_destroy (self->priv->modem_3gpp_<wbr>registration_regex);<br>
><br>
> --<br>
> 2.9.3<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> ModemManager-devel mailing list<br>
> <a href="mailto:ModemManager-devel@lists.freedesktop.org">ModemManager-devel@lists.<wbr>freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/modemmanager-<wbr>devel</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</font></span></blockquote></div><br></div>