Received: by 10.192.165.148 with SMTP id m20csp837912imm; Fri, 27 Apr 2018 08:17:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpD79b+ICYrQ/K8wTlHy3XSldQUsUltXipHWxftRUhcSb4xQ3MAmkXBqlQpopUbvZltUO+W X-Received: by 2002:a17:902:5a5:: with SMTP id f34-v6mr2646646plf.288.1524842261861; Fri, 27 Apr 2018 08:17:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524842261; cv=none; d=google.com; s=arc-20160816; b=v3Rx3HU4wMMNo6DitwXeDqkB+c9A7GZ51etc7XcL1gnjC991xo3Ru1+1kSTsJ2GxTh QwCeUQmvE/YfkTAEFlj0jN0DAk/7gnf7qNhe6ku06NmadzYq6q+kxIzTnOe6gUxgIcSd CrK1hO78Tv2iq6DUDgymH2VbyVOx+pFSMJgu2AzOz2aFUIU3JoLpVfqkK62GF7S8al8B D19oqypDGD9JseJg5tWFQUJ6j7zeckABi9Qi06LXjy7dQEsZu2blHTN4z07KtSGZMrJ8 F1EMARfgLMzb1tKD8qrgz9/jTZKH26ifyhT/0db2MP778lZhNc0322ZY0R5QD9vBYbsZ Ku1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=NiLlxWyPJ/i98STzbG7DcXiPbXyYoEzqlpG00cnY44o=; b=F6lmsf7smw4TJ0vQkt5vZPD29H/Xz9lmzRxQaExZwXmlxDzD4rUMTVw1WntgAU/U0C ep6QOk03xDPk4wUss3ahuaGFe6vWAkmGfeIM6ijePZJbK0aE7X8yStO3rJYU+RP6RKmm QhAhNiMk8xkmeu0J9CVjasDR/fTXc9yksYk/rp/Wdjh9F2lBEpcNjf0B92UbHpDykrHx jA1gUFZHj80ulkYsZhuxFnksDT3SHmcwkq5izyT6K+S1e0/LQon/hRT2Rwx3He+0FJp8 I/AO7p7rRME5VJJzrE82VjxWJNwljoYw87y4LZl0pShjnMUDywtZvjcBiX0QfYqG2yy7 cvtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8-v6si1334881plk.441.2018.04.27.08.17.28; Fri, 27 Apr 2018 08:17:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933531AbeD0OD2 (ORCPT + 99 others); Fri, 27 Apr 2018 10:03:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:49990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933518AbeD0OD0 (ORCPT ); Fri, 27 Apr 2018 10:03:26 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B817F2189F; Fri, 27 Apr 2018 14:03:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B817F2189F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Grant Grundler , Douglas Anderson , "David S. Miller" , Krzysztof Kozlowski Subject: [PATCH 4.9 24/74] r8152: add Linksys USB3GIGV1 id Date: Fri, 27 Apr 2018 15:58:14 +0200 Message-Id: <20180427135710.901094132@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135709.899303463@linuxfoundation.org> References: <20180427135709.899303463@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Grant Grundler commit 90841047a01b452cc8c3f9b990698b264143334a upstream. 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 Reviewed-by: Douglas Anderson Signed-off-by: David S. Miller [krzk: Rebase on v4.4] Signed-off-by: Krzysztof Kozlowski Signed-off-by: Greg Kroah-Hartman --- drivers/net/usb/cdc_ether.c | 10 ++++++++++ drivers/net/usb/r8152.c | 2 ++ 2 files changed, 12 insertions(+) --- a/drivers/net/usb/cdc_ether.c +++ b/drivers/net/usb/cdc_ether.c @@ -530,6 +530,7 @@ static const struct driver_info wwan_inf #define REALTEK_VENDOR_ID 0x0bda #define SAMSUNG_VENDOR_ID 0x04e8 #define LENOVO_VENDOR_ID 0x17ef +#define LINKSYS_VENDOR_ID 0x13b1 #define NVIDIA_VENDOR_ID 0x0955 #define HP_VENDOR_ID 0x03f0 @@ -719,6 +720,15 @@ static const struct usb_device_id produc .driver_info = 0, }, +#if IS_ENABLED(CONFIG_USB_RTL8152) +/* Linksys USB3GIGV1 Ethernet Adapter */ +{ + USB_DEVICE_AND_INTERFACE_INFO(LINKSYS_VENDOR_ID, 0x0041, USB_CLASS_COMM, + USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE), + .driver_info = 0, +}, +#endif + /* Lenovo Thinkpad USB 3.0 Ethernet Adapters (based on Realtek RTL8153) */ { USB_DEVICE_AND_INTERFACE_INFO(LENOVO_VENDOR_ID, 0x7205, USB_CLASS_COMM, --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -519,6 +519,7 @@ enum rtl8152_flags { #define VENDOR_ID_REALTEK 0x0bda #define VENDOR_ID_SAMSUNG 0x04e8 #define VENDOR_ID_LENOVO 0x17ef +#define VENDOR_ID_LINKSYS 0x13b1 #define VENDOR_ID_NVIDIA 0x0955 #define MCU_TYPE_PLA 0x0100 @@ -4506,6 +4507,7 @@ static struct usb_device_id rtl8152_tabl {REALTEK_USB_DEVICE(VENDOR_ID_SAMSUNG, 0xa101)}, {REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x7205)}, {REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x304f)}, + {REALTEK_USB_DEVICE(VENDOR_ID_LINKSYS, 0x0041)}, {REALTEK_USB_DEVICE(VENDOR_ID_NVIDIA, 0x09ff)}, {} };