d578d0107fddc4b83191d40996f24b9c33b5fb20
[openwrt/staging/xback.git] /
1 From 1b0fce8c8e69485e49a7d34aac3d4c2a2aa15d62 Mon Sep 17 00:00:00 2001
2 From: Davide Tronchin <davide.tronchin.94@gmail.com>
3 Date: Thu, 29 Jun 2023 12:37:36 +0200
4 Subject: [PATCH] net: usb: cdc_ether: add u-blox 0x1313 composition.
5
6 Add CDC-ECM support for LARA-R6 01B.
7
8 The new LARA-R6 product variant identified by the "01B" string can be
9 configured (by AT interface) in three different USB modes:
10 * Default mode (Vendor ID: 0x1546 Product ID: 0x1311) with 4 serial
11 interfaces
12 * RmNet mode (Vendor ID: 0x1546 Product ID: 0x1312) with 4 serial
13 interfaces and 1 RmNet virtual network interface
14 * CDC-ECM mode (Vendor ID: 0x1546 Product ID: 0x1313) with 4 serial
15 interface and 1 CDC-ECM virtual network interface
16 The first 4 interfaces of all the 3 configurations (default, RmNet, ECM)
17 are the same.
18
19 In CDC-ECM mode LARA-R6 01B exposes the following interfaces:
20 If 0: Diagnostic
21 If 1: AT parser
22 If 2: AT parser
23 If 3: AT parset/alternative functions
24 If 4: CDC-ECM interface
25
26 Signed-off-by: Davide Tronchin <davide.tronchin.94@gmail.com>
27 Reviewed-by: Simon Horman <simon.horman@corigine.com>
28 Signed-off-by: David S. Miller <davem@davemloft.net>
29 ---
30 drivers/net/usb/cdc_ether.c | 6 ++++++
31 1 file changed, 6 insertions(+)
32
33 --- a/drivers/net/usb/cdc_ether.c
34 +++ b/drivers/net/usb/cdc_ether.c
35 @@ -878,6 +878,12 @@ static const struct usb_device_id produc
36 USB_CDC_PROTO_NONE),
37 .driver_info = (unsigned long)&wwan_info,
38 }, {
39 + /* U-blox LARA-R6 01B */
40 + USB_DEVICE_AND_INTERFACE_INFO(UBLOX_VENDOR_ID, 0x1313, USB_CLASS_COMM,
41 + USB_CDC_SUBCLASS_ETHERNET,
42 + USB_CDC_PROTO_NONE),
43 + .driver_info = (unsigned long)&wwan_info,
44 +}, {
45 /* ZTE modules */
46 USB_VENDOR_AND_INTERFACE_INFO(ZTE_VENDOR_ID, USB_CLASS_COMM,
47 USB_CDC_SUBCLASS_ETHERNET,