diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2021-01-21 16:10:13 +0100 |
---|---|---|
committer | Loic Poulain <loic.poulain@linaro.org> | 2021-01-28 16:46:45 +0100 |
commit | 95daad7cc94056566b80cd5d7cf76c610f649707 (patch) | |
tree | 959378d16c98aa77f0be9c31ec2157853d0cc1f3 | |
parent | 78b6264cfffb8aa998f4866eae8e229234900ffe (diff) |
net: mhi: Set wwan device type
The 'wwan' devtype is meant for devices that require additional
configuration to be used, like WWAN specific APN setup over AT/QMI
commands, rmnet link creation, etc. This is the case for MHI (Modem
host Interface) netdev which targets modem/WWAN endpoints.
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
-rw-r--r-- | drivers/net/mhi_net.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/mhi_net.c b/drivers/net/mhi_net.c index fa41d8c42f05..94337e3f56d5 100644 --- a/drivers/net/mhi_net.c +++ b/drivers/net/mhi_net.c @@ -237,6 +237,10 @@ static void mhi_net_rx_refill_work(struct work_struct *work) schedule_delayed_work(&mhi_netdev->rx_refill, HZ / 2); } +static struct device_type wwan_type = { + .name = "wwan", +}; + static int mhi_net_probe(struct mhi_device *mhi_dev, const struct mhi_device_id *id) { @@ -256,6 +260,7 @@ static int mhi_net_probe(struct mhi_device *mhi_dev, mhi_netdev->ndev = ndev; mhi_netdev->mdev = mhi_dev; SET_NETDEV_DEV(ndev, &mhi_dev->dev); + SET_NETDEV_DEVTYPE(ndev, &wwan_type); /* All MHI net channels have 128 ring elements (at least for now) */ mhi_netdev->rx_queue_sz = 128; |