Skip to content

Commit 4b903e3

Browse files
committed
Merge branch 'r8152'
Hayes Wang says: ==================== support new chip Remove the trailing "/* CRC */" for patch rabeeh#3. Change the return value type of rtl_ops_init() from int to boolean for patch rabeeh#4. Replace VENDOR_ID_SAMSUNG with SAMSUNG_VENDOR_ID for patch rabeeh#6. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 63d515c + 43779f8 commit 4b903e3

File tree

3 files changed

+742
-83
lines changed

3 files changed

+742
-83
lines changed

drivers/net/usb/cdc_ether.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ static const struct driver_info wwan_info = {
486486
#define ZTE_VENDOR_ID 0x19D2
487487
#define DELL_VENDOR_ID 0x413C
488488
#define REALTEK_VENDOR_ID 0x0bda
489+
#define SAMSUNG_VENDOR_ID 0x04e8
489490

490491
static const struct usb_device_id products[] = {
491492
/* BLACKLIST !!
@@ -652,6 +653,15 @@ static const struct usb_device_id products[] = {
652653
.driver_info = 0,
653654
},
654655

656+
#if defined(CONFIG_USB_RTL8152) || defined(CONFIG_USB_RTL8152_MODULE)
657+
/* Samsung USB Ethernet Adapters */
658+
{
659+
USB_DEVICE_AND_INTERFACE_INFO(SAMSUNG_VENDOR_ID, 0xa101, USB_CLASS_COMM,
660+
USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE),
661+
.driver_info = 0,
662+
},
663+
#endif
664+
655665
/* WHITELIST!!!
656666
*
657667
* CDC Ether uses two interfaces, not necessarily consecutive.

0 commit comments

Comments
 (0)