From: Loic Poulain <loic.poulain@linaro.org>
To: unlisted-recipients:; (no To-header on input)
Cc: netdev@vger.kernel.org, johannes@sipsolutions.net,
richard.laing@alliedtelesis.co.nz,
Loic Poulain <loic.poulain@linaro.org>
Subject: [PATCH net-next 0/2] net: mhi: move MBIM to WWAN
Date: Wed, 28 Jul 2021 15:39:23 +0200 [thread overview]
Message-ID: <1627479565-28429-1-git-send-email-loic.poulain@linaro.org> (raw)
Implement a proper WWAN driver for MBIM network protocol, with multi link
management supported through the WWAN framework (wwan rtnetlink).
Until now, MBIM over MHI was supported directly in the mhi_net driver, via
some protocol rx/tx fixup callbacks, but with only one session supported
(no multilink muxing). We can then remove that part from mhi_net and restore
the driver to a simpler version for 'raw' ip transfer (or QMAP via rmnet link).
Note that a wwan0 link is created by default for session-id 0. Additional links
can be managed via ip tool:
$ ip link add dev wwan0mms parentdev wwan0 type wwan linkid 1
Loic Poulain (2):
net: wwan: Add MHI MBIM network driver
net: mhi: Remove MBIM protocol
drivers/net/Kconfig | 4 +-
drivers/net/Makefile | 2 +-
drivers/net/mhi/Makefile | 3 -
drivers/net/mhi/mhi.h | 41 ---
drivers/net/mhi/net.c | 487 -----------------------------
drivers/net/mhi/proto_mbim.c | 310 -------------------
drivers/net/mhi_net.c | 418 +++++++++++++++++++++++++
drivers/net/wwan/Kconfig | 12 +
drivers/net/wwan/Makefile | 1 +
drivers/net/wwan/mhi_wwan_mbim.c | 648 +++++++++++++++++++++++++++++++++++++++
10 files changed, 1082 insertions(+), 844 deletions(-)
delete mode 100644 drivers/net/mhi/Makefile
delete mode 100644 drivers/net/mhi/mhi.h
delete mode 100644 drivers/net/mhi/net.c
delete mode 100644 drivers/net/mhi/proto_mbim.c
create mode 100644 drivers/net/mhi_net.c
create mode 100644 drivers/net/wwan/mhi_wwan_mbim.c
--
2.7.4
next reply other threads:[~2021-07-28 13:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-28 13:39 Loic Poulain [this message]
2021-07-28 13:39 ` [PATCH net-next 1/2] net: wwan: Add MHI MBIM network driver Loic Poulain
2021-07-28 13:39 ` [PATCH net-next 2/2] net: mhi: Remove MBIM protocol Loic Poulain
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=1627479565-28429-1-git-send-email-loic.poulain@linaro.org \
--to=loic.poulain@linaro.org \
--cc=johannes@sipsolutions.net \
--cc=netdev@vger.kernel.org \
--cc=richard.laing@alliedtelesis.co.nz \
/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;
as well as URLs for NNTP newsgroup(s).