Handling QSS unsolicited in power state transitions

Aleksander Morgado aleksander at aleksander.es
Tue Aug 1 11:12:04 UTC 2017


On Tue, Aug 1, 2017 at 12:31 PM, Carlo Lobrano <c.lobrano at gmail.com> wrote:
>> Aren't the sim hot swap unsolicited messages received always, regardless
>> of whether the modem is enabled or disabled?
>
> disabling_stopped function releases both ports contexts, so we don't receive
> unsolicited on SIM swap ports.
>

Wait, I don't think that's ok. The SIM swap ports context is allocated
during initialization, and should exist until the object is destroyed.
We shouldn't be removing this context when the disable() happens,
otherwise we wouldn't get SIM hot swap events when the modem is
disabled.

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list