Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5649980ybl; Tue, 14 Jan 2020 12:34:41 -0800 (PST) X-Google-Smtp-Source: APXvYqyDNn5DlHd6Q5H7xc8tA3FBpqUt1WeRLaP221iDSd2zwSALSIwTUlo+IcZarLopvd34XICr X-Received: by 2002:a05:6808:907:: with SMTP id w7mr18557022oih.91.1579034081506; Tue, 14 Jan 2020 12:34:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579034081; cv=none; d=google.com; s=arc-20160816; b=YU+mw8eWp9ltHVVhTodJwqOWCHNF6ItBcXBpj7D58Pt/GSY5SvuKlPvngG3jEJIIz3 BDMFP9PXsQBzhHrOpu6psYUrNokLfGACPoX/2HlWdOl/0HUAO0OaI5XJ7jiIQRpFLdBg lLlCKceJ/NNdHNYuXeqdIRNoXA5wgif7iv7sJ12bR83Bd0vCl716O6b7wMSPlHGX8bei fXH7l1MmazFHkzll5WQQvwBInaYHLwGPFUHO9GbagRgHxGHneQ8v4LYvMYlvV6QTpgp7 ggW2GAc+ebV5w/J77/KOWpqzsW/WnGJgUgjthNvbtvD4/+lHmlTFOJI4/zcJvJiVxSlO adwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=YcVTsFVCk33wsAAbjgqR5UImqzVzyOEDm+5euXlYj4A=; b=M9Zt4Jk6bW66OSN92tDzj//nl2Gxn3eLyDmL444N8BD+oGMK4HFGrQdsVoqhqis1Kk By58kOJxb2D7B0Ojq2802xRT6UZZyDaJnkYyfrDWuFCRc5gTIk7YIii95lqBZZ634dbQ 1b02xQ/hYf60JE0nsCJjmXyjdoliWPrOhHw+kWAJ8Hpq8FhrbJivAMX6lFspUQdXdRGA LVGIntzhTpexydpjloDsfKN2PXCZAFsDjIFzimnIlVix4NJvRJPTYmLjDEcNeBHuP9jc sTJp98Z9+OCLdFuqSMy84NRGJflRlC8NbRogBu1RgbH++SV4B8R+W5BhL491sc8reKp0 rD4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dell.com header.s=smtpout1 header.b=fDtwT+lG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=dell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h14si8124748oie.98.2020.01.14.12.34.29; Tue, 14 Jan 2020 12:34:41 -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; dkim=pass header.i=@dell.com header.s=smtpout1 header.b=fDtwT+lG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=dell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728905AbgANUda (ORCPT + 99 others); Tue, 14 Jan 2020 15:33:30 -0500 Received: from mx0a-00154904.pphosted.com ([148.163.133.20]:38708 "EHLO mx0a-00154904.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728869AbgANUda (ORCPT ); Tue, 14 Jan 2020 15:33:30 -0500 Received: from pps.filterd (m0170392.ppops.net [127.0.0.1]) by mx0a-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00EKUG64025181; Tue, 14 Jan 2020 15:33:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=smtpout1; bh=YcVTsFVCk33wsAAbjgqR5UImqzVzyOEDm+5euXlYj4A=; b=fDtwT+lGLI+UBFyd7y22qRmTdwDQqJasOPo4ZGD6OrzRFqRYFOM88pU92Sw1KGJz+HkE ycEscT/piAr8isyVBn8TcmCj46wAxwESNxJy8rLEX6yg1l43Pry9yXw/WaZIuT2tByid eSZ/dGgslgmtNL6qpCoH5l2RRpsAl4+qvo9QihUxNO3JRsZ4Gjegyr7mmlhsJILFP116 znzQhCs5Jjs3PkPDCajChsSs7r6pDTYWF4yKvasP7wEIlnNy8F+iqUQT73dJbCKkD1CQ 4PPyZRt3OwihASS/MFwc3zAAXdz/L4C0WhuGjyyvEWxMTRLfdpyftM7ZIJnW49I3qJip dA== Received: from mx0b-00154901.pphosted.com (mx0b-00154901.pphosted.com [67.231.157.37]) by mx0a-00154904.pphosted.com with ESMTP id 2xfadfmnrj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Jan 2020 15:33:28 -0500 Received: from pps.filterd (m0144103.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00EKWZtg178088; Tue, 14 Jan 2020 15:33:27 -0500 Received: from ausxipps301.us.dell.com (ausxipps301.us.dell.com [143.166.148.223]) by mx0b-00154901.pphosted.com with ESMTP id 2xgv7unf13-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Jan 2020 15:33:27 -0500 X-LoopCount0: from 10.166.132.128 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208";a="445730065" From: To: , , CC: , , , , , , Subject: RE: [PATCH] r8152: Add MAC passthrough support to new device Thread-Topic: [PATCH] r8152: Add MAC passthrough support to new device Thread-Index: AQHVypTyXWy+UgfzBkaZbhNc/JuHNafqnTJA Date: Tue, 14 Jan 2020 20:33:19 +0000 Message-ID: References: <20200114044127.20085-1-kai.heng.feng@canonical.com> In-Reply-To: <20200114044127.20085-1-kai.heng.feng@canonical.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Enabled=True; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SiteId=945c199a-83a2-4e80-9f8c-5a91be5752dd; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Owner=Mario_Limonciello@Dell.com; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SetDate=2020-01-14T20:33:18.1061397Z; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Name=External Public; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Application=Microsoft Azure Information Protection; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Extended_MSFT_Method=Manual; aiplabel=External Public x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.18.86] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-14_06:2020-01-14,2020-01-14 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 phishscore=0 clxscore=1011 priorityscore=1501 lowpriorityscore=0 mlxscore=0 mlxlogscore=433 spamscore=0 bulkscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001140157 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 mlxlogscore=550 spamscore=0 priorityscore=1501 bulkscore=0 mlxscore=0 suspectscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001140156 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----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; Limon= ciello, > Mario; Chen7, David; open list:USB NETWORKING DRIVERS; open list:NETWORKI= NG > DRIVERS; open list > Subject: [PATCH] r8152: Add MAC passthrough support to new device >=20 >=20 > [EXTERNAL EMAIL] >=20 > 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? 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). >=20 > 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(-) >=20 > 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= , > } >=20 > if (le16_to_cpu(udev->descriptor.idVendor) =3D=3D VENDOR_ID_LENOVO && > - le16_to_cpu(udev->descriptor.idProduct) =3D=3D 0x3082) > + (le16_to_cpu(udev->descriptor.idProduct) =3D=3D 0x3082 || > + le16_to_cpu(udev->descriptor.idProduct) =3D=3D 0xa387)) > set_bit(LENOVO_MACPASSTHRU, &tp->flags); >=20 > if (le16_to_cpu(udev->descriptor.bcdDevice) =3D=3D 0x3011 && udev->seri= al > && > -- > 2.17.1