mbox series

[net-next,v5,0/5] Add MBIM over MHI support

Message ID 1612861558-14487-1-git-send-email-loic.poulain@linaro.org
Headers show
Series Add MBIM over MHI support | expand

Message

Loic Poulain Feb. 9, 2021, 9:05 a.m. UTC
This patch adds MBIM decoding/encoding support to mhi-net, using
mhi-net rx and tx_fixup 'proto' callbacks introduced in the series.

v2:
   - net.c: mhi_net_dev as rx/tx_fixup parameter
   - mbim: Check nth size/sequence in nth16_verify
   - mbim: Add netif_dbg message for verbose error
   - mbim: Add inline comment for MHI MBIM limitation (no DSS)
   - mbim: Fix copyright issue
   - mbim: Reword commit message

v3:
   - net: dedicated commit for mhi.h
   - net: add rx_length_errors stat change
   - net: rename rx_fixup to rx
   - net: proto rx returns void
   - mbim: remove all unnecessary parenthesis
   - mbim: report errors and rx_length_errors
   - mbim: rate_limited errors in rx/tx path
   - mbim: create define for NDP signature mask
   - mbim: switch-case to if for signature check
   - mbim: skb_cow_head() to fix headroom if necessary

v4:
   - remove one extra useless parens pair

v5:
   - fix sparse issue reported by Jakub:
     proto_mbim.c:159:41: warning: restricted __le32 degrades to integer
     => use explicit endianess accessors for all values.


Loic Poulain (5):
  net: mhi: Add protocol support
  net: mhi: Add dedicated folder
  net: mhi: Create mhi.h
  net: mhi: Add rx_length_errors stat
  net: mhi: Add mbim proto

 drivers/net/Makefile         |   2 +-
 drivers/net/mhi/Makefile     |   3 +
 drivers/net/mhi/mhi.h        |  40 +++++
 drivers/net/mhi/net.c        | 408 +++++++++++++++++++++++++++++++++++++++++++
 drivers/net/mhi/proto_mbim.c | 293 +++++++++++++++++++++++++++++++
 drivers/net/mhi_net.c        | 384 ----------------------------------------
 6 files changed, 745 insertions(+), 385 deletions(-)
 create mode 100644 drivers/net/mhi/Makefile
 create mode 100644 drivers/net/mhi/mhi.h
 create mode 100644 drivers/net/mhi/net.c
 create mode 100644 drivers/net/mhi/proto_mbim.c
 delete mode 100644 drivers/net/mhi_net.c

-- 
2.7.4

Comments

Jakub Kicinski Feb. 9, 2021, 6:21 p.m. UTC | #1
On Tue,  9 Feb 2021 10:05:53 +0100 Loic Poulain wrote:
> This patch adds MBIM decoding/encoding support to mhi-net, using

> mhi-net rx and tx_fixup 'proto' callbacks introduced in the series.


Acked-by: Jakub Kicinski <kuba@kernel.org>