forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/net/usb/cdc_mbim.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2012 Smith Micro Software, Inc.
34 * Copyright (c) 2012 Bjørn Mork <bjorn@mork.no>
45 *
56 * This driver is based on and reuse most of cdc_ncm, which is
67 * Copyright (C) ST-Ericsson 2010-2012
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * version 2 as published by the Free Software Foundation.
118 */
129
1310 #include <linux/module.h>
....@@ -23,6 +20,7 @@
2320 #include <linux/usb/cdc_ncm.h>
2421 #include <net/ipv6.h>
2522 #include <net/addrconf.h>
23
+#include <net/ipv6_stubs.h>
2624
2725 /* alternative VLAN for IP session 0 if not untagged */
2826 #define MBIM_IPS0_VID 4094
....@@ -660,6 +658,16 @@
660658 .driver_info = (unsigned long)&cdc_mbim_info_avoid_altsetting_toggle,
661659 },
662660
661
+ /* Telit FN990 */
662
+ { USB_DEVICE_AND_INTERFACE_INFO(0x1bc7, 0x1071, USB_CLASS_COMM, USB_CDC_SUBCLASS_MBIM, USB_CDC_PROTO_NONE),
663
+ .driver_info = (unsigned long)&cdc_mbim_info_avoid_altsetting_toggle,
664
+ },
665
+
666
+ /* Telit FE990 */
667
+ { USB_DEVICE_AND_INTERFACE_INFO(0x1bc7, 0x1081, USB_CLASS_COMM, USB_CDC_SUBCLASS_MBIM, USB_CDC_PROTO_NONE),
668
+ .driver_info = (unsigned long)&cdc_mbim_info_avoid_altsetting_toggle,
669
+ },
670
+
663671 /* default entry */
664672 { USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_MBIM, USB_CDC_PROTO_NONE),
665673 .driver_info = (unsigned long)&cdc_mbim_info_zlp,