From patchwork Fri Aug 25 23:05:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Napolitano X-Patchwork-Id: 13366407 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2978FC83F04 for ; Fri, 25 Aug 2023 23:16:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbjHYXPn (ORCPT ); Fri, 25 Aug 2023 19:15:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbjHYXPb (ORCPT ); Fri, 25 Aug 2023 19:15:31 -0400 X-Greylist: delayed 572 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 25 Aug 2023 16:15:29 PDT Received: from mx.antonionapolitano.net (host-97-108-136-83.retail.pianetafibra.it [83.136.108.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C5742109; Fri, 25 Aug 2023 16:15:29 -0700 (PDT) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polit.no; s=dkim; t=1693004752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8hVBVaP53VtAK42XNl5f1DuEIUO3+COzZI4DkUPvW6c=; b=fo+MX7iQl6PLGiS7Pd1ANp4AwP0xVOScgS3yGiu+z8dGezBhoiC7ew5thzkuO+XvhHLb14 dGUqaCivWkOau1Q+p/TB2GO5reniJq8lA9pwvOLt9j2/hPwdZ2afoy/HeD0Y34Wl/oyM8U szhREela6pEWdjyY/4sYJAzc+I0kNHXhN1bMVoI6LR1TUewOfzXZSdUQt6QuvU8IquKtB0 jpX785x4Rwc6wkHMRP4fUZbwELZ4MkovXLG5B17Ag4wUWbZqHWV5AgDBRM3xjAiMA9PTmA a+zRMq++OjtOKGLVgaMUda93Eo875IYUXylRxatwJDdhr2l0kKPRD18Ej34UTg== Authentication-Results: mx.antonionapolitano.net; auth=pass smtp.mailfrom=anton@polit.no Date: Sat, 26 Aug 2023 01:05:50 +0200 Cc: , , Subject: [PATCH net-next] r8152: add vendor/device ID pair for D-Link DUB-E250 From: "Antonio Napolitano" To: "David S. Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" Message-Id: X-Spamd-Bar: / Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org 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 --- drivers/net/usb/r8152.c | 1 + include/linux/usb/r8152.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index bb234cf0cea0..332c853ca99b 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -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) }, {} }; diff --git a/include/linux/usb/r8152.h b/include/linux/usb/r8152.h index 20d88b1defc3..287e9d83fb8b 100644 --- a/include/linux/usb/r8152.h +++ b/include/linux/usb/r8152.h @@ -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);