All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH QMI LTE v2 00/13] QMI LTE series
@ 2017-04-14 21:36 Jonas Bonn
  2017-04-14 21:36 ` [PATCH QMI LTE v2 01/13] qmi: duplicate callback data correctly Jonas Bonn
                   ` (12 more replies)
  0 siblings, 13 replies; 21+ messages in thread
From: Jonas Bonn @ 2017-04-14 21:36 UTC (permalink / raw)
  To: ofono

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

LTE is different from other 'GPRS' technologies in that a default bearer
always gets set up when the modem registers to the network.  Ofono has
some support for this and this series tries to set this up for QMI
modems.

The key to understanding this series is to understand that QMI modems
do not automatically enable the network interface when connecting to
an LTE network, even though the default bearer is already set up.  A
call to "start network" needs to be made in order to allow packets to
flow.  So the jist of this series is:

i) detect network registration to LTE network
ii) call ofono_gprs_cid_activated
iii) in read_settings, start by calling "start network"

...and then there are some other adjustments in the series to make
this all work.

I've tested this with my EC21, both on LTE and UMTS networks.  It
all seems to work, including moving out of network connectivity and
bringing the modem repeatedly online/offline.

One open question at this point:

* What happens if the connection manager calls deactivate_context
on the default bearer context?  I don't see that any other drivers
guard against this, and the QMI driver will happily stop the network
interface even though the default bearer is still up in the background.

Jonas Bonn (13):
  qmi: duplicate callback data correctly
  qmi: fix typo
  gprs: release active contexts completely
  gprs: _cid_activated is an 'attaching' state
  gprs: set driver_attached when activating automatic contexts
  qmi: implement detach_shutdown method
  qmi: read_settings needs to call start network
  qmi: don't leak cbd and rely on destroy function
  qmi: activate default bearer context for LTE networks
  qmi: use destroy callback for activate_primary
  qmi: stop listening to packet service notifications
  qmi: rely on destroy callback
  qmi: consolidate ss_info handling functions

 drivers/qmimodem/gprs-context.c         | 126 +++++++++++++---------------
 drivers/qmimodem/gprs.c                 | 140 ++++++++++++++++++++++----------
 drivers/qmimodem/nas.h                  |   2 +-
 drivers/qmimodem/network-registration.c |  73 +++++++----------
 src/gprs.c                              |  22 ++++-
 5 files changed, 205 insertions(+), 158 deletions(-)

-- 
2.9.3


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2017-04-14 23:00 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-14 21:36 [PATCH QMI LTE v2 00/13] QMI LTE series Jonas Bonn
2017-04-14 21:36 ` [PATCH QMI LTE v2 01/13] qmi: duplicate callback data correctly Jonas Bonn
2017-04-14 21:49   ` Denis Kenzior
2017-04-14 21:36 ` [PATCH QMI LTE v2 02/13] qmi: fix typo Jonas Bonn
2017-04-14 21:49   ` Denis Kenzior
2017-04-14 21:36 ` [PATCH QMI LTE v2 03/13] gprs: release active contexts completely Jonas Bonn
2017-04-14 22:13   ` Denis Kenzior
2017-04-14 21:36 ` [PATCH QMI LTE v2 04/13] gprs: _cid_activated is an 'attaching' state Jonas Bonn
2017-04-14 22:29   ` Denis Kenzior
2017-04-14 21:36 ` [PATCH QMI LTE v2 05/13] gprs: set driver_attached when activating automatic contexts Jonas Bonn
2017-04-14 22:43   ` Denis Kenzior
2017-04-14 21:36 ` [PATCH QMI LTE v2 06/13] qmi: implement detach_shutdown method Jonas Bonn
2017-04-14 21:36 ` [PATCH QMI LTE v2 07/13] qmi: read_settings needs to call start network Jonas Bonn
2017-04-14 22:57   ` Denis Kenzior
2017-04-14 21:36 ` [PATCH QMI LTE v2 08/13] qmi: don't leak cbd and rely on destroy function Jonas Bonn
2017-04-14 23:00   ` Denis Kenzior
2017-04-14 21:36 ` [PATCH QMI LTE v2 09/13] qmi: activate default bearer context for LTE networks Jonas Bonn
2017-04-14 21:36 ` [PATCH QMI LTE v2 10/13] qmi: use destroy callback for activate_primary Jonas Bonn
2017-04-14 21:36 ` [PATCH QMI LTE v2 11/13] qmi: stop listening to packet service notifications Jonas Bonn
2017-04-14 21:36 ` [PATCH QMI LTE v2 12/13] qmi: rely on destroy callback Jonas Bonn
2017-04-14 21:36 ` [PATCH QMI LTE v2 13/13] qmi: consolidate ss_info handling functions Jonas Bonn

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.