Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4776635ybl; Mon, 13 Jan 2020 20:46:31 -0800 (PST) X-Google-Smtp-Source: APXvYqzoZdZB0DGIy+JW3IJb2V5PuSbvm/QVl2/vxIoRtslF7XLgkt2buxLb1SsAKnlToy6+9QtM X-Received: by 2002:a9d:7e99:: with SMTP id m25mr14932476otp.212.1578977191671; Mon, 13 Jan 2020 20:46:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578977191; cv=none; d=google.com; s=arc-20160816; b=eLQXoTF+tUcKf2J3nH2aZiMffPOFiYAVsrPvHSce6y6/zNjp3+vAVLUTsVXxh1mcAU ZBBcU3I/TKdrLBMu97l5UlA2HWUiLRZlDcXaIZPZCjaMiZXxnTP4tgDQZ7fuxGSXNB/q HqibcQGzaqnA1NPD09KyGjnF4s7yX8LCzsfjxmO4MiEhsmsgy5LJw1WVoftIIVpxOrO0 tsZ6Ajm5c7ZRXcShxbJhA3+Z2Tzy5OdfjPgn9UfCc7KAjkqDOAeQfrD7Q8LvOxm+m7hA Pgji10LdUWG3WlQIU83cYMGaAIEtJbYbB/eJWM4ENiMECCqqwBw/8x5FPhabHeGSOWyT lUGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=gG93I9sXq+yDSQMooz4o0UyltpdaCUZ+Tv5eUcNg8HU=; b=EX0SD9iqkJ5Nhs7XDqs0oqf74WhWTGBiUckKxpCMPKo6mI8hLPLtfuV1JiFrPwMwcI jPQVeih0E5YcHWsgLLrjJL/erPhLHmVEciAbivRBDfkecSObfXdcabNjMGLUadKoYAip fgYnuRdk6O5w0uXEC3xpj6GYQC6LySfnLAjFPF+CiwjMFM8UL66G8cvWll+gwZOcGsXW DSmXsrGj9kkWaANlL5pW2v/iUVOzXGvtVe5aJyV4cHrteyK1vAZIgXFkDFB5LKTt4Goe cg9jGXCOhoyjeMnak53q7RFTxcX8sLPLmXzTcPu6YVHyQRLu9ST/IFEnhO0A60Ju8ut4 ay4g== 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 i5si8014419otr.293.2020.01.13.20.46.19; Mon, 13 Jan 2020 20:46:31 -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 S1728721AbgANElp (ORCPT + 99 others); Mon, 13 Jan 2020 23:41:45 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:59816 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbgANElp (ORCPT ); Mon, 13 Jan 2020 23:41:45 -0500 Received: from 61-220-137-37.hinet-ip.hinet.net ([61.220.137.37] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1irE1I-0003Ey-69; Tue, 14 Jan 2020 04:41:37 +0000 From: Kai-Heng Feng To: davem@davemloft.net, hayeswang@realtek.com Cc: Kai-Heng Feng , Jakub Kicinski , Prashant Malani , Grant Grundler , Mario Limonciello , David Chen , linux-usb@vger.kernel.org (open list:USB NETWORKING DRIVERS), netdev@vger.kernel.org (open list:NETWORKING DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] r8152: Add MAC passthrough support to new device Date: Tue, 14 Jan 2020 12:41:25 +0800 Message-Id: <20200114044127.20085-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Device 0xa387 also supports MAC passthrough, therefore add it to the whitelst. 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