Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: usb: cdc_ether: add u-blox 0x1343 composition

Add CDC-ECM support for LARA-L6.

LARA-L6 module can be configured (by AT interface) in three different
USB modes:
* Default mode (Vendor ID: 0x1546 Product ID: 0x1341) with 4 serial
interfaces
* RmNet mode (Vendor ID: 0x1546 Product ID: 0x1342) with 4 serial
interfaces and 1 RmNet virtual network interface
* CDC-ECM mode (Vendor ID: 0x1546 Product ID: 0x1343) with 4 serial
interface and 1 CDC-ECM virtual network interface

In CDC-ECM mode LARA-L6 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>
Link: https://lore.kernel.org/r/20221124112811.3548-1-davide.tronchin.94@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Davide Tronchin and committed by
Jakub Kicinski
2816c986 c672e372

+6
+6
drivers/net/usb/cdc_ether.c
··· 990 990 USB_CDC_PROTO_NONE), 991 991 .driver_info = (unsigned long)&wwan_info, 992 992 }, { 993 + /* U-blox LARA-L6 */ 994 + USB_DEVICE_AND_INTERFACE_INFO(UBLOX_VENDOR_ID, 0x1343, USB_CLASS_COMM, 995 + USB_CDC_SUBCLASS_ETHERNET, 996 + USB_CDC_PROTO_NONE), 997 + .driver_info = (unsigned long)&wwan_info, 998 + }, { 993 999 /* Cinterion PLS8 modem by GEMALTO */ 994 1000 USB_DEVICE_AND_INTERFACE_INFO(0x1e2d, 0x0061, USB_CLASS_COMM, 995 1001 USB_CDC_SUBCLASS_ETHERNET,