From: Lei Yu <lei.2.yu@nokia.com>
To: ofono@ofono.org
Subject: Re: [PATCH v3 7/7] cdmaphonesim: Add CDMA SMS Support
Date: Thu, 06 Jan 2011 09:47:38 -0800 [thread overview]
Message-ID: <4D26003A.2040907@nokia.com> (raw)
In-Reply-To: <4D24B2EC.1000907@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1820 bytes --]
Hi Denis,
On 01/05/2011 10:05 AM, ext Denis Kenzior wrote:
>>>
>>> If we have both phonesim and cdmaphonesim plugins active, we need to
>>> make sure they don't interfere with each other. Perhaps adding a
>>> Type=cdma and having cdmaphonesim look for that Type tag and ignore the
>>> rest would be a good idea?
>>>
>> I am a bit lost about the Type attribute. cdmaphonesim is currently
>> defined as a separate plugin and by the time cdmaphonesim's
>> parse_config() is invoked, it already knows that it is cdma. Thus, I
>> don't see why needing another flag indicating this. When you say ignore
>> the rest, could you pls be more specific about what to ignore and what's
>> the intention of doing that? Sorry, still learning... :-)
>>
>
> So correct me if I'm wrong, but there's a race between cdmaphonesim and
> phonesim plugins:
>
> if phonesim starts first it reads phonesim.conf and creates both
> phonesim and cdmaphonesim modems. When cdmaphonesim starts, it tries to
> create the modems again, but fails. Similar situation vice-versa.
>
> This is why I'm suggesting the Type attribute. Maybe I'm blind and this
> race does not happen?
>
Now, I understand your point. I checked the log, in my setup,
cdmaphonsim will run first and it will create cdmaphonsim plugin. Next,
phonesim will run and try to create cdmaphonsim plugin with wrong type:
"phonesim" but failed. I.e., we are lucky to have cdmaphonsim run first.
So, the way to fix this is to add a Type=cdma flag under [cdmaphonsim]
and let cdmaphonsim.c only create modem if type is set to cdma. In
addition to this, we also need to modify phonesim.c to ignore any modem
group that has type set to cdma.
Could you pls clarify whether above solution will work?
> Regards,
> -Denis
Regards,
Lei
prev parent reply other threads:[~2011-01-06 17:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-22 21:03 [PATCH v3 7/7] cdmaphonesim: Add CDMA SMS Support Lei Yu
2011-01-04 21:44 ` Denis Kenzior
2011-01-05 18:03 ` Lei Yu
2011-01-05 18:05 ` Denis Kenzior
2011-01-06 17:47 ` Lei Yu [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=4D26003A.2040907@nokia.com \
--to=lei.2.yu@nokia.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.