From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] sim: Handle multiple invocations of sim_imsi_obtained
Date: Tue, 06 May 2014 15:59:10 -0500 [thread overview]
Message-ID: <53694D1E.1000204@gmail.com> (raw)
In-Reply-To: <5368F00F.5040609@jolla.com>
[-- Attachment #1: Type: text/plain, Size: 1363 bytes --]
Hi Slava,
>>> + if (sim->imsi && !strcmp(sim->imsi, imsi))
>>> + return;
>> Calling this function a second time is an error. So this condition
>> looks highly suspect. What issue are you trying to address?
>
> sim_imsi_obtained() is invoked from two places: sim_imsi_cb() and
> sim_efimsi_cb(). sim_imsi_cb() in turn is a completion for
Only one of those functions is called, depending on how the driver
implements obtaining of the IMSI. Some drivers do not have the ability
to read IMSI using the READ BINARY / READ RECORD SIM commands.
> sim_retrieve_imsi() which is invoked from 5 other asynchronous
> callbacks, mostly triggered by a number of ofono_sim_read() calls. I
> don't claim that I fully understand what's going on and I haven't
> analyzed all the call sequences but it surely is invoked twice in our
> setup. Any suggestions on where the problem might be?
The code flow of the functions deals with Barred / Fixed Dialing Numbers
and the variations between 2G and 3G sims. The logic is set up in such
a way that sim_retrieve_imsi is called only once. Looking at the code,
there doesn't seem to be any way for sim_retrieve_imsi to be called twice.
If this is indeed happening, then please let me know under what
circumstances this happens and I can help you track this issue down.
Regards,
-Denis
prev parent reply other threads:[~2014-05-06 20:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-06 11:54 [PATCH] sim: Handle multiple invocations of sim_imsi_obtained Slava Monich
2014-05-06 13:38 ` Denis Kenzior
2014-05-06 14:22 ` Slava Monich
2014-05-06 20:59 ` Denis Kenzior [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53694D1E.1000204@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.