Received: by 10.192.165.148 with SMTP id m20csp1364310imm; Wed, 25 Apr 2018 17:43:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx48bm3tJ7FVMkcXVVU63OFhYbvVsAX5SPTBGwwipUlMBCOTqQ2g82GDwgTc6Ii3fp7VaEiF5 X-Received: by 10.98.88.194 with SMTP id m185mr29316138pfb.167.1524703400870; Wed, 25 Apr 2018 17:43:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524703400; cv=none; d=google.com; s=arc-20160816; b=DP3gVhbGX0VX3w7yxqc9mg+tFrvhCrDYcoKk4qmKzKiPmzEzwsF4xZ9pVa47aIFDnz GgHoogU4t0jpJ0KWBENM89sx2zvDqq2pqrlowSoiT8xb+Ahz9A/Cg2IaeKIqv7xPSMRh LCo5iSbKeznPynuT8eyrc8QRjuWEkPpx0cRyoEXrjghpDAJqzl7XywJft8H/YfZrv9x0 WV/QgKbS/ggMrkgP0EIK3ozbNmdkdIdg0SHWvL3QbJU8O0BAzipJfho5NCjJREHD6zvB PXkzin/BE0YawWmKy/ueSxxkKLfVdaxQ6hgU9h1+hQPlYmprBbmukEsiY+XD2kna5o+S yF1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=i/cqaUkxFW6V5t093Gjgfe1rw1FXVh1dVadnV2hSDLU=; b=IU6zkRVXAU7V/J09HNKuazOEyo87PMTcnyD7jR9EgrGs2qoRZU7BCA9UWb44QtUkUK uMVga3Lr/9D+MsZAeVO4A2FmG+xJmiuBIRDYaUzO4thP/83AGI+J+trI/XDuQFHYaCYD G+Lrt2DuLsX32BK9yiYp6KQ99mnZdkBIJfYb3jSsHIN8J2NZ8GHSbU/u3/qpYzxzp1uh zNOqzfDyQO033ULtRwkNfb+lh5C7HlnHfsYyHtydlYXMPk7GgUYElKhfSfheQi3JCLQ4 OHAjY6OBeyPb5hOMTKT/roe2SDM6w2E1CCawFbFYVe9/PNXlTGw8GoURBWeZi1N7SMHP /ruA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=Mrau0NpN; dkim=fail header.i=@chromium.org header.s=google header.b=JSpL2NJT; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 65si15209341pgh.248.2018.04.25.17.43.05; Wed, 25 Apr 2018 17:43:20 -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; dkim=fail header.i=@google.com header.s=20161025 header.b=Mrau0NpN; dkim=fail header.i=@chromium.org header.s=google header.b=JSpL2NJT; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753545AbeDZAlk (ORCPT + 99 others); Wed, 25 Apr 2018 20:41:40 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:51767 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753165AbeDZAlc (ORCPT ); Wed, 25 Apr 2018 20:41:32 -0400 Received: by mail-it0-f68.google.com with SMTP id o20-v6so22343686itc.1 for ; Wed, 25 Apr 2018 17:41:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=i/cqaUkxFW6V5t093Gjgfe1rw1FXVh1dVadnV2hSDLU=; b=Mrau0NpNVCO7ayTAFiRZsL+fQUyIm8usYUqgYSPx7tjjJoVSHSwXRCMq9Is/Yrtf2L 8U3bz+IX52IE58AhnThyBIXZ5u0rqbDhOr++twqbBmE2xxbU4gkEKQHdj9eo8hsZblY4 Y5fP/G+HJOVP17kQWGHDuiwlAJ4RYywgx1NpwSPCpGIKnw28sKzdL5TtVmyNS/O5TDRh u2FpQlyiV3bSv2TAOqEFZ/z6Mjrm5jreukTtzPsE1kLxSdfAL7TzTUu6vm1+P/2Z/xfg aaKrbhm/OTP+t6zVokwrYLVb7UJZSe0uLtFlrv0/aNEHZ0ahnj58qiGOuQe+Wm/vJwC7 euBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=i/cqaUkxFW6V5t093Gjgfe1rw1FXVh1dVadnV2hSDLU=; b=JSpL2NJTFRamS4349hcgX9J7bJr9m84MAnrOjVD5MsGmlWbiWFwc/Qo/vkWoIt3709 CiZXizr+DgUZN/+0OPPLKOUsHtqcN410kX1MROuG7Thc3Vyx8iD1rh/DaAuiU03LvN0j E87Kml1qCANbqtyVAivVYW2rYitcepcSeEUV0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=i/cqaUkxFW6V5t093Gjgfe1rw1FXVh1dVadnV2hSDLU=; b=Mdj0ZIA4bzfU1zbnde2EQZ4HKzkuQpF//EK6Zyz7iX+rxqNg0El4inrnX3czAKYoNv EUqE/KPYFwVqlol4LLJ3+Ao9UHEk4rBpdDG5EG2dSxt35Q24ZytMWEujwaLSbEhbUD3a DUcA6KYKgSPmHGNqr4DbX7+wOrFmvi278JHMQDftHtM0cb8qCQFqL5T5tbLfcX+pGq6p hx+GqiwMWWS6S+9lcfn+5PGMVfvdpoFOGEngSF+z6DEfXa4xkNHmEL6xLfZS1TJuKSzu bTW9m9XoVa53MTZFPTU+JE1l4s3922zbmQH+jYJRbBnI4IzR3vPaVHDXP5QxfT3B1z8t aNuA== X-Gm-Message-State: ALQs6tCoSPvOkjPgaV8o/JOMVpgbwNMUVzVi1fnTdrrBHR0ZjEVwF1D9 hOeQnOYSkv5wLjY9z0HlfmwgqNLwhgKbobNmjM7xIg== X-Received: by 2002:a24:4d8e:: with SMTP id l136-v6mr24057146itb.121.1524703291323; Wed, 25 Apr 2018 17:41:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.21.67 with HTTP; Wed, 25 Apr 2018 17:41:30 -0700 (PDT) In-Reply-To: <1524650077-13270-1-git-send-email-krzk@kernel.org> References: <1524650077-13270-1-git-send-email-krzk@kernel.org> From: Grant Grundler Date: Wed, 25 Apr 2018 17:41:30 -0700 X-Google-Sender-Auth: 1UiDqbBPcUdtwaUIihSCwLl3S1Q Message-ID: Subject: Re: [PATCH stable v4.4+] r8152: add Linksys USB3GIGV1 id To: Krzysztof Kozlowski Cc: Oliver Neukum , "David S. Miller" , linux-usb@vger.kernel.org, netdev , LKML , Grant Grundler 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 On Wed, Apr 25, 2018 at 2:54 AM, Krzysztof Kozlowski wrote: > 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 thanks krzk! FTR, to support RTL8153B (HW ID 0x6010), the follow patch series to bring r8152 v1.09.9 driver from 4.14 kernel.org to 3 (of 5) older Chrome OS kernels: 3.14: https://chromium-review.googlesource.com/q/topic:%22update_r8152-3.14%22+(status:open%20OR%20status:merged) 3.18: https://chromium-review.googlesource.com/q/topic:%2522update-r8152-3.18%2522+(status:open+OR+status:merged) 4.4: https://chromium-review.googlesource.com/q/topic:%2522update_r8152-4.4%2522+(status:open+OR+status:merged) caveat: These series are not suitable directly for kernel.org submission (extraneous stuff in the commit messages, order is different). Using the original SHA1 (in each commit message), this can all be fixed up by hand/simple scripts. cheers, grant > --- > drivers/net/usb/cdc_ether.c | 10 ++++++++++ > drivers/net/usb/r8152.c | 2 ++ > 2 files changed, 12 insertions(+) > > diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c > index 6578127db847..f71abe50ea6f 100644 > --- a/drivers/net/usb/cdc_ether.c > +++ b/drivers/net/usb/cdc_ether.c > @@ -461,6 +461,7 @@ static const struct driver_info wwan_info = { > #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 products[] = { > .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, > diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c > index 89950f5cea71..b2c1a435357f 100644 > --- 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_table[] = { > {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)}, > {} > }; > -- > 2.7.4 >