Skip to content

Commit 9084104

Browse files
grundlerchromiumdavem330
authored andcommitted
r8152: add Linksys USB3GIGV1 id
This linksys dongle by default comes up in cdc_ether mode. This patch allows r8152 to claim the device: Bus 002 Device 002: ID 13b1:0041 Linksys Signed-off-by: Grant Grundler <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9f775ea commit 9084104

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

drivers/net/usb/cdc_ether.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ static const struct driver_info wwan_info = {
547547
#define REALTEK_VENDOR_ID 0x0bda
548548
#define SAMSUNG_VENDOR_ID 0x04e8
549549
#define LENOVO_VENDOR_ID 0x17ef
550+
#define LINKSYS_VENDOR_ID 0x13b1
550551
#define NVIDIA_VENDOR_ID 0x0955
551552
#define HP_VENDOR_ID 0x03f0
552553
#define MICROSOFT_VENDOR_ID 0x045e
@@ -737,6 +738,15 @@ static const struct usb_device_id products[] = {
737738
.driver_info = 0,
738739
},
739740

741+
#if IS_ENABLED(CONFIG_USB_RTL8152)
742+
/* Linksys USB3GIGV1 Ethernet Adapter */
743+
{
744+
USB_DEVICE_AND_INTERFACE_INFO(LINKSYS_VENDOR_ID, 0x0041, USB_CLASS_COMM,
745+
USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE),
746+
.driver_info = 0,
747+
},
748+
#endif
749+
740750
/* ThinkPad USB-C Dock (based on Realtek RTL8153) */
741751
{
742752
USB_DEVICE_AND_INTERFACE_INFO(LENOVO_VENDOR_ID, 0x3062, USB_CLASS_COMM,

drivers/net/usb/r8152.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ enum rtl8152_flags {
613613
#define VENDOR_ID_MICROSOFT 0x045e
614614
#define VENDOR_ID_SAMSUNG 0x04e8
615615
#define VENDOR_ID_LENOVO 0x17ef
616+
#define VENDOR_ID_LINKSYS 0x13b1
616617
#define VENDOR_ID_NVIDIA 0x0955
617618

618619
#define MCU_TYPE_PLA 0x0100
@@ -5316,6 +5317,7 @@ static const struct usb_device_id rtl8152_table[] = {
53165317
{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x7205)},
53175318
{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x720c)},
53185319
{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x7214)},
5320+
{REALTEK_USB_DEVICE(VENDOR_ID_LINKSYS, 0x0041)},
53195321
{REALTEK_USB_DEVICE(VENDOR_ID_NVIDIA, 0x09ff)},
53205322
{}
53215323
};

0 commit comments

Comments
 (0)