From patchwork Tue Jan 14 04:41:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai-Heng Feng X-Patchwork-Id: 11331295 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 99464921 for ; Tue, 14 Jan 2020 04:41:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7717A206D5 for ; Tue, 14 Jan 2020 04:41:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728665AbgANElp (ORCPT ); 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-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@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 &&