Re: [PATCH] sim: Move atom registration to the end of ofono_sim_register

2017-10-27 Thread Slava Monich
Hi Denis, On 27/10/17 16:56, Denis Kenzior wrote: Hi Slava, On 10/27/2017 08:15 AM, Slava Monich wrote: The state needs to be checked prior to calling __ofono_atom_register because atom registration calls OFONO_ATOM_WATCH_CONDITION_REGISTERED callbacks each of which may call

[PATCH] qmi: remove request when it timeouts

2017-10-27 Thread Christophe Ronco
When modem does not answer or answers slowly to a discovery request, a timeout occurs. In timeout callback, request should be removed from queues to avoid treating answer if it arrives later. --- drivers/qmimodem/qmi.c | 26 ++ 1 file changed, 26 insertions(+) diff --git

[PATCHv2] qmi: remove request when it timeouts

2017-10-27 Thread Christophe Ronco
Differences from v1: Remove cast (as proposed by Jonas Bonn) Christophe Ronco (1): qmi: remove request when it timeouts drivers/qmimodem/qmi.c | 26 ++ 1 file changed, 26 insertions(+) -- 2.7.4 ___ ofono mailing list

Re: [PATCH] sim: Move atom registration to the end of ofono_sim_register

2017-10-27 Thread Denis Kenzior
Hi Slava, On 10/27/2017 08:15 AM, Slava Monich wrote: The state needs to be checked prior to calling __ofono_atom_register because atom registration calls OFONO_ATOM_WATCH_CONDITION_REGISTERED callbacks each of which may call ofono_sim_inserted_notify. Should that happen, by the time

[PATCH] sim: Move atom registration to the end of ofono_sim_register

2017-10-27 Thread Slava Monich
The state needs to be checked prior to calling __ofono_atom_register because atom registration calls OFONO_ATOM_WATCH_CONDITION_REGISTERED callbacks each of which may call ofono_sim_inserted_notify. Should that happen, by the time __ofono_atom_register returns, ofono_sim will be in