r8152: add vendor/device ID pair for D-Link DUB-E250
authorAntonio Napolitano <anton@polit.no>
Fri, 25 Aug 2023 23:05:50 +0000 (01:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Aug 2023 19:53:40 +0000 (12:53 -0700)
The D-Link DUB-E250 is an RTL8156 based 2.5G Ethernet controller.

Add the vendor and product ID values to the driver. This makes Ethernet
work with the adapter.

Signed-off-by: Antonio Napolitano <anton@polit.no>
Link: https://lore.kernel.org/r/CV200KJEEUPC.WPKAHXCQJ05I@mercurius
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/r8152.c
include/linux/usb/r8152.h

index bb234cf..332c853 100644 (file)
@@ -9832,6 +9832,7 @@ static const struct usb_device_id rtl8152_table[] = {
        { USB_DEVICE(VENDOR_ID_LINKSYS, 0x0041) },
        { USB_DEVICE(VENDOR_ID_NVIDIA,  0x09ff) },
        { USB_DEVICE(VENDOR_ID_TPLINK,  0x0601) },
+       { USB_DEVICE(VENDOR_ID_DLINK,   0xb301) },
        {}
 };
 
index 20d88b1..287e9d8 100644 (file)
@@ -29,6 +29,7 @@
 #define VENDOR_ID_LINKSYS              0x13b1
 #define VENDOR_ID_NVIDIA               0x0955
 #define VENDOR_ID_TPLINK               0x2357
+#define VENDOR_ID_DLINK                        0x2001
 
 #if IS_REACHABLE(CONFIG_USB_RTL8152)
 extern u8 rtl8152_get_version(struct usb_interface *intf);