Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp988776rwe; Thu, 1 Sep 2022 10:34:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR4rCFoJVJ6zE0i2TiwIdsNB5vv+/RHQhVmEAp74ExQPpzih99sfg69E6ynuIlFUd9JssZOz X-Received: by 2002:aa7:df8c:0:b0:448:a9a0:5fd8 with SMTP id b12-20020aa7df8c000000b00448a9a05fd8mr13838093edy.244.1662053665165; Thu, 01 Sep 2022 10:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662053665; cv=none; d=google.com; s=arc-20160816; b=WLOrWCzj+XbLpJbsljb1JI00xsZVDTiPifgXAhXOM6sqLEfx7Bwlp+1Pyaecunj8w5 2oNw6/m+jFzGfz2MJCtFIe3r8DeHeN780hd+KMbuV5a2DRsxegWBcJLa/ApYDELyhaTM eo1RNa173/Na2jec5p3h3RSivf/ZWrKONwBqgu5+rxisgJkKyWvFtdIjViHngzovHE+U NaSvzlertgToCqbK+Z5OuQ6q+rtPRKOqSJt8NRC3FLxNygEw8iRvV3+CMj7QsmD7AxLE 01qNufaf9rPjXRolJYR7+b2dVcfOeLF7265OmK9z/0YelfnDR9vgSxxjv95DJCVjdbUw 8DJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=3vPQ2BTY63hE7G2TpCCwRlZZKU5r4RJbU9VQsua0JHw=; b=kmwZPZqwH2tjU4gEKXRvMPbDo8vX/6wSC+F4+oaXlfudRGq49PC+Rj0O4pVfXwweSs LC7EW9oE5D+VDAS2cwWGE+A7wCTLfRv7q7GyYm+cAGmJxWPl0+kFRr9595FFldk/NRzC 5cJK6kUhwkTLf0DB1axCX+JazEZV2fE8IjcodV3UGrbObnJGR++NowZalEHsArWslbbF Iq9UCaxxiPbj58wn6mu2VCSuc29vlPiT01FN/hiGTbhBx4cgs5e14TqOM69kZ4aUlgVE gXvfOzco6oAvomMipcyaThxFLAoGg4YVqOrtONMXxd6/YdIwTab5m3vomh0840FoVfqe 00sA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6-20020a056402518600b00448de56e1bdsi2629246edd.157.2022.09.01.10.33.55; Thu, 01 Sep 2022 10:34:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233399AbiIARAY (ORCPT + 99 others); Thu, 1 Sep 2022 13:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232718AbiIARAX (ORCPT ); Thu, 1 Sep 2022 13:00:23 -0400 Received: from smtprelay08.ispgateway.de (smtprelay08.ispgateway.de [134.119.228.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CF553D5A4; Thu, 1 Sep 2022 10:00:19 -0700 (PDT) Received: from [92.206.161.29] (helo=note-book.lan) by smtprelay08.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oTnYA-0006Tp-Ji; Thu, 01 Sep 2022 19:00:18 +0200 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= To: Aaron Ma , Jakub Kicinski , linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Subject: [PATCH net-next] r8152: Add MAC passthrough support for Lenovo Travel Hub Date: Thu, 1 Sep 2022 19:00:13 +0200 Message-Id: <20220901170013.7975-1-git@apitzsch.eu> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Lenovo USB-C Travel Hub supports MAC passthrough. Signed-off-by: André Apitzsch --- drivers/net/usb/r8152.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index dca6f71c4bfe..a51d8ded60f3 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -770,6 +770,7 @@ enum rtl8152_flags { RX_EPROTO, }; +#define DEVICE_ID_LENOVO_USB_C_TRAVEL_HUB 0x721e #define DEVICE_ID_THINKPAD_ONELINK_PLUS_DOCK 0x3054 #define DEVICE_ID_THINKPAD_THUNDERBOLT3_DOCK_GEN2 0x3082 #define DEVICE_ID_THINKPAD_USB_C_DONGLE 0x720c @@ -9586,6 +9587,7 @@ static bool rtl8152_supports_lenovo_macpassthru(struct usb_device *udev) if (vendor_id == VENDOR_ID_LENOVO) { switch (product_id) { + case DEVICE_ID_LENOVO_USB_C_TRAVEL_HUB: case DEVICE_ID_THINKPAD_ONELINK_PLUS_DOCK: case DEVICE_ID_THINKPAD_THUNDERBOLT3_DOCK_GEN2: case DEVICE_ID_THINKPAD_USB_C_DOCK_GEN2: -- 2.37.3