Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
48 lines
1.7 KiB
Diff
48 lines
1.7 KiB
Diff
From 1b0fce8c8e69485e49a7d34aac3d4c2a2aa15d62 Mon Sep 17 00:00:00 2001
|
|
From: Davide Tronchin <davide.tronchin.94@gmail.com>
|
|
Date: Thu, 29 Jun 2023 12:37:36 +0200
|
|
Subject: [PATCH] net: usb: cdc_ether: add u-blox 0x1313 composition.
|
|
|
|
Add CDC-ECM support for LARA-R6 01B.
|
|
|
|
The new LARA-R6 product variant identified by the "01B" string can be
|
|
configured (by AT interface) in three different USB modes:
|
|
* Default mode (Vendor ID: 0x1546 Product ID: 0x1311) with 4 serial
|
|
interfaces
|
|
* RmNet mode (Vendor ID: 0x1546 Product ID: 0x1312) with 4 serial
|
|
interfaces and 1 RmNet virtual network interface
|
|
* CDC-ECM mode (Vendor ID: 0x1546 Product ID: 0x1313) with 4 serial
|
|
interface and 1 CDC-ECM virtual network interface
|
|
The first 4 interfaces of all the 3 configurations (default, RmNet, ECM)
|
|
are the same.
|
|
|
|
In CDC-ECM mode LARA-R6 01B exposes the following interfaces:
|
|
If 0: Diagnostic
|
|
If 1: AT parser
|
|
If 2: AT parser
|
|
If 3: AT parset/alternative functions
|
|
If 4: CDC-ECM interface
|
|
|
|
Signed-off-by: Davide Tronchin <davide.tronchin.94@gmail.com>
|
|
Reviewed-by: Simon Horman <simon.horman@corigine.com>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
---
|
|
drivers/net/usb/cdc_ether.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- a/drivers/net/usb/cdc_ether.c
|
|
+++ b/drivers/net/usb/cdc_ether.c
|
|
@@ -878,6 +878,12 @@ static const struct usb_device_id produc
|
|
USB_CDC_PROTO_NONE),
|
|
.driver_info = (unsigned long)&wwan_info,
|
|
}, {
|
|
+ /* U-blox LARA-R6 01B */
|
|
+ USB_DEVICE_AND_INTERFACE_INFO(UBLOX_VENDOR_ID, 0x1313, USB_CLASS_COMM,
|
|
+ USB_CDC_SUBCLASS_ETHERNET,
|
|
+ USB_CDC_PROTO_NONE),
|
|
+ .driver_info = (unsigned long)&wwan_info,
|
|
+}, {
|
|
/* ZTE modules */
|
|
USB_VENDOR_AND_INTERFACE_INFO(ZTE_VENDOR_ID, USB_CLASS_COMM,
|
|
USB_CDC_SUBCLASS_ETHERNET,
|