All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] qmimodem: set data format when needed (and possible)
@ 2017-01-19  8:15 Christophe Ronco
  2017-01-19  8:15 ` [PATCH 1/2] qmimodem: get/set kernel device driver data format Christophe Ronco
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Christophe Ronco @ 2017-01-19  8:15 UTC (permalink / raw)
  To: ofono

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

MC7430 is a raw-ip only modem. If accessed through 802.3 network interface,
no packets can be received (IP layer headers missing).

To be able to start a data connection with this modem, we must tell driver
(qmi_wwan.c) to mount a raw-ip network interface instead of a 802.3 interface.

This has been implemented in libqmi package. The idea is:
 - ask modem what data format it wants (raw-ip or 802.3)
 - ask driver what data format it expects (raw-ip or 802.3)
 - change driver data format if values do not match

Patch has been split in two.
In first part, we just add the code needed to get/set driver expected data
format but nobody ever call these functions.
In second part, logic explained above is implemented.
If anything fail (can't get expected data format, can't get modem data format,
...), we just don't set anything and continue.

To be able to use this, a kernel 4.5 or more recent is needed.

Christophe Ronco (2):
  qmimodem: get/set kernel device driver data format
  qmimodem: change kernel driver data format if needed

 drivers/qmimodem/gprs-context.c |  79 +++++++++++++++-
 drivers/qmimodem/qmi.c          | 200 ++++++++++++++++++++++++++++++++++++++++
 drivers/qmimodem/qmi.h          |  11 +++
 drivers/qmimodem/wda.h          |  25 +++++
 4 files changed, 312 insertions(+), 3 deletions(-)
 create mode 100644 drivers/qmimodem/wda.h

-- 
2.11.0


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

end of thread, other threads:[~2017-02-02 17:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-19  8:15 [PATCH 0/2] qmimodem: set data format when needed (and possible) Christophe Ronco
2017-01-19  8:15 ` [PATCH 1/2] qmimodem: get/set kernel device driver data format Christophe Ronco
2017-01-19 20:12   ` Denis Kenzior
2017-01-19  8:15 ` [PATCH 2/2] qmimodem: change kernel driver data format if needed Christophe Ronco
2017-01-19 20:20   ` Denis Kenzior
2017-02-01 10:32 ` [PATCH 0/2] V2 qmimodem: set data format when needed (and possible) Christophe Ronco
2017-02-01 10:32   ` [PATCH 1/2] qmimodem: get/set kernel device driver data format Christophe Ronco
2017-02-01 10:32   ` [PATCH 2/2] qmimodem: change kernel driver data format if needed Christophe Ronco
2017-02-02 17:49   ` [PATCH 0/2] V2 qmimodem: set data format when needed (and possible) Denis Kenzior

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.