From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH] atmodem: Enable network time for AT modem
Date: Fri, 11 Mar 2011 13:54:44 -0800 [thread overview]
Message-ID: <1299880484.2055.3.camel@aeonflux> (raw)
In-Reply-To: <1299848118.2851.5.camel@apaila-ThinkPad-T410>
[-- Attachment #1: Type: text/plain, Size: 1845 bytes --]
Hi Antti,
> > > drivers/atmodem/network-registration.c | 2 ++
> > > 1 files changed, 2 insertions(+), 0 deletions(-)
> > >
> > > diff --git a/drivers/atmodem/network-registration.c b/drivers/atmodem/network-registration.c
> > > index 4913611..2d589f0 100644
> > > --- a/drivers/atmodem/network-registration.c
> > > +++ b/drivers/atmodem/network-registration.c
> > > @@ -722,6 +722,8 @@ static void ifx_ctzv_notify(GAtResult *result, gpointer user_data)
> > > nd->time.mday = mday;
> > > nd->time.mon = mon;
> > > nd->time.year = 2000 + year;
> > > +
> > > + ofono_netreg_time_notify(netreg, &nd->time);
> > > }
> > >
> > > static void ifx_ctzdst_notify(GAtResult *result, gpointer user_data)
> >
> > actually this time notification is a bad idea since you will notify
> > twice now. With the firmware that I tested this with, it is guaranteed
> > to always get CTZV and CTZDST and in that order.
>
> Of course there will be two notifications since there are two distinct
> event CTZV and CTDST. My ifx modem documentation doesn't say that these
> are always bound together so we should not make any implicit assumption.
> Anyway I believe that it is the next level i.e. time plug-in whose job
> it is to check whether it has all the bits and pieces needed to inform
> the Timed or some other client.
that is a clear no here. We are not making every single nettime plugin
responsible for handling this. This needs to be handled either in the
core or in the drivers.
If you are afraid of the IFX modem not sending CTZV + CTZDST all the
time, then you need to handle this with a timeout to trigger notifying
nettime core.
However, I have not seen that yet on any network I have tested this on.
Also asking IFX to confirm the current assumption would just work.
Regards
Marcel
prev parent reply other threads:[~2011-03-11 21:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 8:43 [PATCH] atmodem: Enable network time for AT modem Antti Paila
2011-03-08 8:59 ` Jeevaka.Badrappan
2011-03-08 9:44 ` Antti Paila
2011-03-08 10:35 ` Jeevaka.Badrappan
2011-03-08 13:16 ` Aki Niemi
2011-03-08 13:22 ` Jeevaka.Badrappan
2011-03-08 17:12 ` Marcel Holtmann
2011-03-08 17:46 ` Jeevaka.Badrappan
2011-03-11 12:55 ` Antti Paila
2011-03-11 21:54 ` Marcel Holtmann [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=1299880484.2055.3.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