Skip to content

RFC net: wwan: add NMEA port type support

Sergey Ryazanov llvm netdev oe-kbuild-all 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 RFC Latest7 patches 9 repliesIn review
  2. v2 RFC6 patches 18 repliesSuperseded
  3. v1 RFC6 patches 24 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7net: wwan: core: remove unused port_id fielddrivers/net/wwan/wwan_core.c+0 -20 replies
2/7net: wwan: core: explicit WWAN device reference countingdrivers/net/wwan/wwan_core.c+18 -193 replies
3/7net: wwan: core: split port creation and registrationdrivers/net/wwan/wwan_core.c+42 -260 replies
4/7net: wwan: core: split port unregister and stopdrivers/net/wwan/wwan_core.c+18 -50 replies
5/7net: wwan: add NMEA port supportdrivers/net/wwan/Kconfig drivers/net/wwan/wwan_core.c include/linux/wwan.h+154 -50 replies
6/7net: wwan: hwsim: refactor to support more port typesdrivers/net/wwan/wwan_hwsim.c+41 -320 replies
7/7net: wwan: hwsim: support NMEA port emulationdrivers/net/wwan/wwan_hwsim.c+126 -20 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchLoic Poulain
1/7R-b
2/7
3/7
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [RFC PATCH v5 0/7] net: wwan: add NMEA port type support

The series introduces a long discussed NMEA port type support for the WWAN subsystem. There are two goals. From the WWAN driver perspective, NMEA exported as any other port type (e.g. AT, MBIM, QMI, etc.). From user space software perspective, the exported chardev belongs to the GNSS class what makes it easy to distinguish desired port and the WWAN device common to both NMEA and control (AT, MBIM, etc.) ports makes it easy to locate a control port for the GNSS receiver activation.

Done by exporting the NMEA port via the GNSS subsystem with the WWAN core acting as proxy between the WWAN modem driver and the GNSS subsystem.

The series starts from a cleanup patch. Then three patches prepares the WWAN core for the proxy style operation. Followed by a patch introding a new WWNA port type, integration with the GNSS subsystem and demux. The series ends with a couple of patches that introduce emulated EMEA port to the WWAN HW simulator.

The series is the product of the discussion with Loic about the pros and cons of possible models and implementation. Also Muhammad and Slark did a great job defining the problem, sharing the code and pushing me to finish the implementation. Daniele has caught an issue on driver unloading and suggested an investigation direction. What was concluded by Loic. Many thanks.

Slark, if this series with the unregister fix suits you, please bundle it with your MHI patch, and (re-)send for final inclusion.

Changes RFCv1->RFCv2:
* Uniformly use put_device() to release port memory. This made code less weird and way more clear. Thank you, Loic, for noticing and the fix discussion!
Changes RFCv2->RFCv5:
* Fix premature WWAN device unregister; new patch 2/7, thus, all subsequent patches have been renumbered
* Minor adjustments here and there

CC Slark Xiao <[email protected]>
CC Muhammad Nuzaihan <[email protected]>
CC Daniele Palmas <[email protected]>
CC Qiang Yu <[email protected]>
CC Manivannan Sadhasivam <[email protected]>
CC Johan Hovold <[email protected]>

Sergey Ryazanov (7):
net: wwan: core: remove unused port_id field
net: wwan: core: explicit WWAN device reference counting
net: wwan: core: split port creation and registration
net: wwan: core: split port unregister and stop
net: wwan: add NMEA port support
net: wwan: hwsim: refactor to support more port types
net: wwan: hwsim: support NMEA port emulation

 drivers/net/wwan/Kconfig      |   1 +
 drivers/net/wwan/wwan_core.c  | 280 +++++++++++++++++++++++++++-------
 drivers/net/wwan/wwan_hwsim.c | 201 +++++++++++++++++++-----
 include/linux/wwan.h          |   2 +
 4 files changed, 396 insertions(+), 88 deletions(-)
Signature · 1 line
2.52.0