OSDN Git Service

net: mhi: Add protocol support
authorLoic Poulain <loic.poulain@linaro.org>
Tue, 9 Feb 2021 09:05:54 +0000 (10:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Feb 2021 23:11:50 +0000 (15:11 -0800)
commitddeb9bfa59c711ccbddec1c9fb9ec190caab1a4c
tree3833ad7244ad789588d435636ebfa595f313984c
parent24a1720a08417910cab211ff072e46ff7ae605d3
net: mhi: Add protocol support

MHI can transport different protocols, some are handled at upper level,
like IP and QMAP(rmnet/netlink), but others will need to be inside MHI
net driver, like mbim. This change adds support for protocol rx and
tx_fixup callbacks registration, that can be used to encode/decode the
targeted protocol.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mhi_net.c