All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 2/7] extended support for LTE and NR. Some minor fixes. part 2 of 7
Date: Thu, 20 Sep 2018 12:18:51 -0500	[thread overview]
Message-ID: <46d7e1eb-dd42-75ca-e5ef-d36d1d2cb8bc@gmail.com> (raw)
In-Reply-To: <CAKSBH7HG2AD4J9_AGGyTHFd-Nu2ennemZkyF+KFr2Ko=tqkN2A@mail.gmail.com>

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

Hi Giacinto,

On 09/20/2018 12:03 PM, Giacinto Cifelli wrote:
> hi Denis,
> 
> On Thu, 20 Sep 2018, 18:31 Denis Kenzior, <denkenz@gmail.com 
> <mailto:denkenz@gmail.com>> wrote:
> 
>     Hi Giacinto,
> 
>      > The idea would be to just store the values in the driver but not
>     in the
>      > module,
>      > and then send them before attaching, so that the verification can be
>      > consistent and all,
>      > just like for the gprs-context atom.
> 
>     Yes, but that is not what you outlined in the code.  You were watching
>     for SIM_STATE_READY which only means just that.
> 
>     Also note that we can bring the modem online even in pre_sim state
>     (e.g.
>     for emergency calls), in which case the lte atom doesn't exist yet.
> 
> 
> where should a hook be placed then?
> this looked to me a good place, just before bringing it online.
> if there is no atom, no config and everything is ok anyway.

That's kind of the problem, there is no good place.  The only thing you 
can do is have the core apply settings, if available, just prior to the 
set_online driver call.  However, it is tricky to do so:

- We're in pre-sim state and go online for emergency calls.  This is 
okay as no LTE atom is created.  If a SIM is initialized / inserted at 
this point, the modem can re-connect with a proper default settings. 
The LTE atom creation and modem performing a re-connect is now a race. 
Admittedly the solution we have today also suffers from this problem, so 
maybe there's not much we can do here.

- We're offline and going online.  You need to perform the online 
operation as a transaction.  First setting the default attach details 
and then actually setting the modem online.  We can't do it 
simultaneously, as again we cannot assume the multiplexing / queueing 
behavior of the driver.  This could perhaps be made to work, but there 
may be additional issues that are discovered as we go along.  Only way 
to find out is to prototype it.

> 
>      >
>      > so the idea would be to check if a new method, that I have
>     tentatively
>      > called set_property(),
>      > exists. If so, use the reviewed stile above, otherwise fallback
>     to the
>      > current function.
>      >
> 
>     I don't see what set_property is buying you.  Anyway, feel free to come
>     up with a more detailed proposal, but my impression is that this
>     approach will quickly become way too complicated.
> 
> 
> I think now i got you. The existing function could be used, but the 
> driver only stores the values internally because it knows it will ve 
> called later for sending the commands.
> 

Or we simply cache the values in the lte atom and call the driver method 
only when appropriate.

Regards,
-Denis

  reply	other threads:[~2018-09-20 17:18 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-19  5:37 [PATCH 1/7] extended support for LTE and NR. Some minor fixes. part 1 of 7 Giacinto Cifelli
2018-09-19  5:37 ` [PATCH 2/7] extended support for LTE and NR. Some minor fixes. part 2 " Giacinto Cifelli
2018-09-19 15:04   ` Denis Kenzior
2018-09-19 16:07     ` Giacinto Cifelli
2018-09-19 16:30       ` Denis Kenzior
2018-09-19 17:53         ` Giacinto Cifelli
2018-09-19 18:23           ` Denis Kenzior
2018-09-20  7:57             ` Giacinto Cifelli
2018-09-20 16:02               ` Denis Kenzior
2018-09-20 16:07                 ` Giacinto Cifelli
2018-09-20 16:31                   ` Denis Kenzior
2018-09-20 17:03                     ` Giacinto Cifelli
2018-09-20 17:18                       ` Denis Kenzior [this message]
2018-09-20 17:25                         ` Giacinto Cifelli
2018-09-19  5:37 ` [PATCH 3/7] extended support for LTE and NR. Some minor fixes. part 3 " Giacinto Cifelli
2018-09-19 15:05   ` Denis Kenzior
2018-09-19  5:37 ` [PATCH 4/7] extended support for LTE and NR. Some minor fixes. part 4 " Giacinto Cifelli
2018-09-19  5:37 ` [PATCH 5/7] extended support for LTE and NR. Some minor fixes. part 5 " Giacinto Cifelli
2018-09-19  5:37 ` [PATCH 6/7] extended support for LTE and NR. Some minor fixes. part 6 " Giacinto Cifelli
2018-09-19  5:37 ` [PATCH 7/7] extended support for LTE and NR. Some minor fixes. part 7 " Giacinto Cifelli
2018-09-19  8:35 ` [PATCH 1/7] extended support for LTE and NR. Some minor fixes. part 1 " Slava Monich
2018-09-19  9:24   ` Giacinto Cifelli
2018-09-19 15:21     ` Denis Kenzior
2018-09-19 16:28       ` Slava Monich
2018-09-19 16:32         ` Denis Kenzior
2018-09-19 16:54           ` Slava Monich
2018-09-19 16:58             ` Giacinto Cifelli
2018-09-19 20:48             ` Slava Monich
2018-09-19 21:45               ` Denis Kenzior
2018-09-19 23:14                 ` Slava Monich
2018-09-20  2:31                   ` Denis Kenzior
2018-09-19 15:19   ` Denis Kenzior
2018-09-19 14:09 ` Denis Kenzior
2018-09-19 15:42   ` Giacinto Cifelli
2018-09-19 15:59     ` Denis Kenzior

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=46d7e1eb-dd42-75ca-e5ef-d36d1d2cb8bc@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.