Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6136191ybl; Tue, 14 Jan 2020 22:41:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyOJHDZnsxPhAdtb6TKi1j1yEov+WLZyzmAJKm3A5XwbrVQM5lGYGat5hAIBMU8wBwtRNSt X-Received: by 2002:aca:5f87:: with SMTP id t129mr20181094oib.36.1579070497915; Tue, 14 Jan 2020 22:41:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579070497; cv=none; d=google.com; s=arc-20160816; b=H3qRTUYfH9f0TqF8LbyBhdqMvdttcqilopslPt9dkBVmrt1vQ8F6f6CPNpUrkQh5pA AZ3hMSyU4ubqW2jiUnvK7eLyHSkoXRAsxNgIuQuJ/ApqyzbK4t4WA0vkbrHPJIBgXa1D 32DvcU9xu02zyX5+zVCz89nCiMOGsoJ50/HpFYE87j+LMtiq20B1kZ720/Xoh0Gj7dHZ 8ScT/lUT5wh5iNg7qCrUMeUVy5jttao30em23zvxIumwtzhUm4CxFxZTDAUqSHZEceRX u23+aWDZaI9WxWMm2BIJjkTGxl0BYa50hI4odr6lNgdXpjs6/5FHAZ2X/Uauz4J0YaA7 sh5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=UJVZMQYNco48uN+iLGzkBIfdf9KYZt6rp3FhNvkBrlg=; b=q+BQm2vqXRYxiQo+nJDE5HyUlM0ek3vAjsHCy8Bq4ayayZiCAqTIVLONT6ikPQYZuB 9KgoVc++zgQtPNuOdqp1ysvclPJElW/TsJ+TieNXZsH6R6ko8kG906jHTe0SQS+pHz22 6Ga7PVfrhJqHsXj68kJggs2B+HU2WRKn/URdfXOCP4/h8zXZ6AvOKgsltagYZWpW9nnY KODctPESezNEoHCxI5OcnaE+io4Q5MjPpdU/d2HUk4xgYZGa/pPrkpY/8RinOFaIEFel 6cGFD71pdoUVePZLGOoIDQE3NfKYbbqckSmaoaXqSuH5BeC0LCIj3iOhWn2SvinZlIz0 LlQw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e24si9242754otl.62.2020.01.14.22.41.21; Tue, 14 Jan 2020 22:41:37 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729057AbgAOGkL convert rfc822-to-8bit (ORCPT + 99 others); Wed, 15 Jan 2020 01:40:11 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:49548 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbgAOGkL (ORCPT ); Wed, 15 Jan 2020 01:40:11 -0500 Received: from mail-pf1-f200.google.com ([209.85.210.200]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ircLZ-00029H-Ck for linux-kernel@vger.kernel.org; Wed, 15 Jan 2020 06:40:09 +0000 Received: by mail-pf1-f200.google.com with SMTP id v14so10342429pfm.21 for ; Tue, 14 Jan 2020 22:40:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ks+FKtYdipfmIovpRk0e6E//v9CS+XKOemaSP1iQ0A8=; b=oLRWyTYKqcaJTvPd+o0jwNAuPIfotznoJdsCIkK2QSSb0y6E2grvGNRJpszgTMGSnM OwmFyAzFh6AfYOSmhMY2gPLea89Q0eWYvPTC2WkMZwf3ZAdBkOOsfDvFBFLu9LUL2Ua9 tGr0SoowURxrjMxIS83Bq9M2H3VfJhiF+U9wnVAx4VU5ybY4ZCzuDlFNO23ab6gJzrT5 JRhaGblEHcfzuzwOiRDOlsbTKvDmEJ1yVIrhJUiDK2AXI/263h/Utzgb9aDKQAH2V5oB QJd7VJ9AN7Pm7L2H7zCOeZDnDoP60aV/Mv3MS0zYKTAsdC+OomTHcMIJcr+qlUaXoDXu 8acw== X-Gm-Message-State: APjAAAWHT09h9x7HRCFIi66oEEr1kRI2nLJmTnjTTCFLyKsp46dVrG3e lJObTyGtkODaHODF4UdgLKSM+gWo9hEL5IebTJm48kH0YAiUo2nq+BPcu6zLlkT/3CdnJawxNQ5 Tp2lktMcFGL5aCl5MYqNBV03WyJsNwbklOuHpzoucOw== X-Received: by 2002:a63:d141:: with SMTP id c1mr26072645pgj.397.1579070407858; Tue, 14 Jan 2020 22:40:07 -0800 (PST) X-Received: by 2002:a63:d141:: with SMTP id c1mr26072612pgj.397.1579070407423; Tue, 14 Jan 2020 22:40:07 -0800 (PST) Received: from [10.101.46.91] (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id l14sm17861129pgt.42.2020.01.14.22.40.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jan 2020 22:40:06 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\)) Subject: Re: [PATCH] r8152: Add MAC passthrough support to new device From: Kai Heng Feng In-Reply-To: Date: Wed, 15 Jan 2020 14:40:03 +0800 Cc: David Miller , hayeswang@realtek.com, Jakub Kicinski , pmalani@chromium.org, grundler@chromium.org, "" , linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <430A264A-27E0-489D-B7B1-8E78AAD528D7@canonical.com> References: <20200114044127.20085-1-kai.heng.feng@canonical.com> To: Mario.Limonciello@dell.com X-Mailer: Apple Mail (2.3594.4.19) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jan 15, 2020, at 4:33 AM, Mario.Limonciello@dell.com wrote: > > > >> -----Original Message----- >> From: Kai-Heng Feng >> Sent: Monday, January 13, 2020 10:41 PM >> To: davem@davemloft.net; hayeswang@realtek.com >> Cc: Kai-Heng Feng; Jakub Kicinski; Prashant Malani; Grant Grundler; Limonciello, >> Mario; Chen7, David; open list:USB NETWORKING DRIVERS; open list:NETWORKING >> DRIVERS; open list >> Subject: [PATCH] r8152: Add MAC passthrough support to new device >> >> >> [EXTERNAL EMAIL] >> >> Device 0xa387 also supports MAC passthrough, therefore add it to the >> whitelst. > > Have you confirmed whether this product ID is unique to the products that > support this feature or if it's also re-used in other products? This is unique for Lenovo product. > > For Dell's devices there are very specific tests that make sure that this > feature only applies on the products it is supposed to and nothing else > (For example RTL8153-AD checks variant as well as effuse value) > (Example two: RTL8153-BND is a Dell only part). Hayes, do you know how macpassthru on Lenovo dock works? Kai-Heng > >> >> BugLink: https://bugs.launchpad.net/bugs/1827961/comments/30 >> Signed-off-by: Kai-Heng Feng >> --- >> drivers/net/usb/r8152.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c >> index c5ebf35d2488..42dcf1442cc0 100644 >> --- a/drivers/net/usb/r8152.c >> +++ b/drivers/net/usb/r8152.c >> @@ -6657,7 +6657,8 @@ static int rtl8152_probe(struct usb_interface *intf, >> } >> >> if (le16_to_cpu(udev->descriptor.idVendor) == VENDOR_ID_LENOVO && >> - le16_to_cpu(udev->descriptor.idProduct) == 0x3082) >> + (le16_to_cpu(udev->descriptor.idProduct) == 0x3082 || >> + le16_to_cpu(udev->descriptor.idProduct) == 0xa387)) >> set_bit(LENOVO_MACPASSTHRU, &tp->flags); >> >> if (le16_to_cpu(udev->descriptor.bcdDevice) == 0x3011 && udev->serial >> && >> -- >> 2.17.1 >