Received: by 10.192.165.148 with SMTP id m20csp854792imm; Fri, 27 Apr 2018 08:34:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo1uaIRY1MNDV2j2qhYL8/JjlaYbQUiUqgUhl3xMB2ASTCt5qdBnjIuySckcIyXD4v9DFFN X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr2632552plb.299.1524843248974; Fri, 27 Apr 2018 08:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524843248; cv=none; d=google.com; s=arc-20160816; b=MPyafMUYnx59BtMLnLeUwpJPBL0h9Hvl3+JBukC3HysUaO9R+KLLV586CSFbLKIEwa IwnwYaZM4lYwRZzjwmps1RenaEtT3Ck7Jl/hoUb3kiCvspnhGbFU3U+3ooz/UJ8cHAiN Gr3ZspBlwnjRrnghFFgL6ggSu12lnofDyMcT2O8ttboHiGuCLRH164+GkY+AZKyRlB4P e09mPHQsbUPS86Aw9gW23dKUEWzB7R28p4FMLNPPBSJhwRET69MmCSFVPsOxYWAYFBaB yhvriiCnBpquuYyLxyfXd1qrNB8gwKErQ12OsRyj1rJdrm8kk36i68wSM2uFNeTJatan Eiuw== 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=eqFoxLqB1CVHGfz3c9781xdBKLEymN4QQ+cw91D0juc=; b=owZ7XBSN8YGhcmQY0GXfvPfhkELbfOZbjbsgunA10Q7psc/8lDvLcMrjQ83sfxfnKd qHlmT2PJ/GyTKTqkvp7eWGs1RJmcEUI4w0JKhHEKK9dt4lrePbbbAPk9ClWyaERnb4DI WugupGimYjJp1wPSnEtAXyFzBdc7fGt5OWCYOrD27eVg27osCeL4KCzM6vUgD1AHQOhe uGUe2ojnbmYWII5oGZ37NOoxCChtrUlAyk9EDTf+YA5+0OZgFO2MfW4W62njQn5UPsfQ 36MiK1gAaJK1Hbk9vpEGcy63r47Wdc3Th4eAG2/CRzeZYxc9kWosWR+gFJZOaVl47yrX OlvQ== 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 y14-v6si1426996pgo.286.2018.04.27.08.33.55; Fri, 27 Apr 2018 08:34:08 -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 S932883AbeD0OAu (ORCPT + 99 others); Fri, 27 Apr 2018 10:00:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:47904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932821AbeD0OAq (ORCPT ); Fri, 27 Apr 2018 10:00:46 -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 5FB532185A; Fri, 27 Apr 2018 14:00:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5FB532185A 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.4 05/50] r8152: add Linksys USB3GIGV1 id Date: Fri, 27 Apr 2018 15:58:07 +0200 Message-Id: <20180427135655.958773583@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135655.623669681@linuxfoundation.org> References: <20180427135655.623669681@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.4-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 @@ -461,6 +461,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 @@ -650,6 +651,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 @@ -506,6 +506,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 @@ -4376,6 +4377,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)}, {} };