Skip to content

Commit b306053

Browse files
Kazutoshi Noguchidavem330
authored andcommitted
r8152: add device id for Lenovo ThinkPad USB-C Dock Gen 2
This device is sold as 'ThinkPad USB-C Dock Gen 2 (40AS)'. Chipset is RTL8153 and works with r8152. Without this, the generic cdc_ether grabs the device, and the device jam connected networks up when the machine suspends. Signed-off-by: Kazutoshi Noguchi <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e7a409c commit b306053

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

drivers/net/usb/cdc_ether.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,13 @@ static const struct usb_device_id products[] = {
787787
.driver_info = 0,
788788
},
789789

790+
/* ThinkPad USB-C Dock Gen 2 (based on Realtek RTL8153) */
791+
{
792+
USB_DEVICE_AND_INTERFACE_INFO(LENOVO_VENDOR_ID, 0xa387, USB_CLASS_COMM,
793+
USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE),
794+
.driver_info = 0,
795+
},
796+
790797
/* NVIDIA Tegra USB 3.0 Ethernet Adapters (based on Realtek RTL8153) */
791798
{
792799
USB_DEVICE_AND_INTERFACE_INFO(NVIDIA_VENDOR_ID, 0x09ff, USB_CLASS_COMM,

drivers/net/usb/r8152.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5755,6 +5755,7 @@ static const struct usb_device_id rtl8152_table[] = {
57555755
{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x7205)},
57565756
{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x720c)},
57575757
{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x7214)},
5758+
{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0xa387)},
57585759
{REALTEK_USB_DEVICE(VENDOR_ID_LINKSYS, 0x0041)},
57595760
{REALTEK_USB_DEVICE(VENDOR_ID_NVIDIA, 0x09ff)},
57605761
{REALTEK_USB_DEVICE(VENDOR_ID_TPLINK, 0x0601)},

0 commit comments

Comments
 (0)