Open Source Telephony
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [RFC online/offline atoms PATCH 4/4] isigen: create sms and gprs in post_sim
Date: Tue, 05 Oct 2010 14:04:24 +0200	[thread overview]
Message-ID: <1286280264.17473.84.camel@aeonflux> (raw)
In-Reply-To: <1286278512-3529-5-git-send-email-Pekka.Pessi@nokia.com>

[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]

Hi Pekka,

> ---
>  plugins/isigen.c |   20 ++++++++++----------
>  1 files changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/plugins/isigen.c b/plugins/isigen.c
> index db61fdb..d550a34 100644
> --- a/plugins/isigen.c
> +++ b/plugins/isigen.c
> @@ -395,22 +395,29 @@ static void isigen_pre_sim(struct ofono_modem *modem)
>  static void isigen_post_sim(struct ofono_modem *modem)
>  {
>  	struct isi_data *isi = ofono_modem_get_data(modem);
> +	struct ofono_gprs *gprs;
> +	struct ofono_gprs_context *gc;
>  
>  	DBG("(%p) with %s", modem, isi->ifname);
>  
>  	ofono_phonebook_create(isi->modem, 0, "isimodem", isi->idx);
> +	ofono_sms_create(isi->modem, 0, "isimodem", isi->idx);
> +	gprs = ofono_gprs_create(isi->modem, 0, "isimodem", isi->idx);
> +	gc = ofono_gprs_context_create(isi->modem, 0, "isimodem", isi->idx);

what advantage to we have from moving SMS and GPRS atom into the
post_sim state? I am trying to really understand what this is trying to
do and what is the difference of just doing it when in post_online
state.

Are we expecting SMS and GPRS to just bring the modem online if needed
or what is this about? I don't see how useful this could be.

Regards

Marcel



  reply	other threads:[~2010-10-05 12:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05 11:35 [RFC online/offline atoms PATCH 0/4] modem: add modem state watch Pekka.Pessi
2010-10-05 11:35 ` [RFC online/offline atoms PATCH 1/4] " Pekka.Pessi
2010-10-05 11:35   ` [RFC online/offline atoms PATCH 2/4] sms: watch modem state Pekka.Pessi
2010-10-05 11:35     ` [RFC online/offline atoms PATCH 3/4] gprs: " Pekka.Pessi
2010-10-05 11:35       ` [RFC online/offline atoms PATCH 4/4] isigen: create sms and gprs in post_sim Pekka.Pessi
2010-10-05 12:04         ` Marcel Holtmann [this message]
2010-10-06  0:40           ` Denis Kenzior
2010-10-06  8:55             ` Marcel Holtmann
2010-10-13 20:53       ` [RFC online/offline atoms PATCH 3/4] gprs: watch modem state Denis Kenzior
2010-10-05 11:59     ` [RFC online/offline atoms PATCH 2/4] sms: " Marcel Holtmann
2010-10-06  0:38       ` Denis Kenzior
2010-10-06  8:54         ` Marcel Holtmann
2010-10-13 20:45     ` Denis Kenzior
2010-10-05 11:56   ` [RFC online/offline atoms PATCH 1/4] modem: add modem state watch Marcel Holtmann
2010-10-13 20:39   ` Denis Kenzior
2010-10-14  7:21     ` Pekka Pessi

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=1286280264.17473.84.camel@aeonflux \
    --to=marcel@holtmann.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox