Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1693733rwe; Sat, 27 Aug 2022 14:31:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR4+1ef2I6x4Dmm5Wqy/ezLZfmOvPIp6LHGjK2TY1v7+Uml8MkIxDFNBtMUqJteOkVGxTTOT X-Received: by 2002:a17:907:7212:b0:733:1ada:e413 with SMTP id dr18-20020a170907721200b007331adae413mr9271252ejc.309.1661635888633; Sat, 27 Aug 2022 14:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661635888; cv=none; d=google.com; s=arc-20160816; b=vziBix7HlppEyklfjIBWzgl3MDDUjCCa4MEu4Z5Gufs6XRewAb+smCLQ/3XEEbZncf TbyllQKD+Wy6ykputMW3ZZiqaj8YxUlajoOYSggcHJGRZCQyvY1qJhoNYljXbMN1CTVC rpTtDHKx/jP7n1RAKUj+l6CCovYQ9fmu3s9pG/LYaTXVQlK+FuQi/KsfRMaGYfDTD2kF WlZRaymMNLUChJxsW48qh6v4Hx3x5pOOG7TXwUhL/7RWnfWMDw2yOu30SwWqjwt/qTuC lAhJzr+WM+ZWyuV1OvV+sjZ2udfROzbfI9Sx5nNSt44ZCl0Hw6AQkqFgYMCJx/7HVOxE UR8A== 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=AXHi5/Xk3p67nQpb1vYeHz/2qClRsMKZlVAy7Ca+4wU=; b=oPMLhknyWmS2DEk+fG69EZ8h6lIDnZCv3vjjgAGbQBxapReGHvC1LGfxiqUwMDnBj1 uqec4IgbeVIN+hB4aKEXjHmoIvO19uGeDf1NflAyX5Xo+ojMQ7ZX/QP8S3oKPsIuzLnr 6GJA3u8ehV46WMifb3YPDdTytZV4UqQzb/x8M8sAJXY/EGqnhZPnwET3I8jfZnA3h4SU b7JUDCEbLFFzq4eL9da2xP0D8GhsvR22Iv5qvD+4+mruIV5+hovd+Fz7vcxHz6BG7kp5 1EmtrLQ73AtoBSPrpt0AE2Yz3j0ZpfM+Tb77MirvGfUbOk3PnyAzae2HRPxEQzOHCZ6o Cqbw== 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 m16-20020a056402431000b004471c6d80b6si4580314edc.372.2022.08.27.14.31.03; Sat, 27 Aug 2022 14:31:28 -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 S231421AbiH0Suy (ORCPT + 99 others); Sat, 27 Aug 2022 14:50:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbiH0Sux (ORCPT ); Sat, 27 Aug 2022 14:50:53 -0400 X-Greylist: delayed 148 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 27 Aug 2022 11:50:51 PDT Received: from smtprelay08.ispgateway.de (smtprelay08.ispgateway.de [134.119.228.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49B4933A21; Sat, 27 Aug 2022 11:50:50 -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 1oS0rW-0005oZ-Ov; Sat, 27 Aug 2022 20:48:54 +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] r8152: Add MAC passthrough support for Lenovo Travel Hub Date: Sat, 27 Aug 2022 20:47:29 +0200 Message-Id: <20220827184729.15121-1-git@apitzsch.eu> X-Mailer: git-send-email 2.37.2 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 d142ac8fcf6e..6fe50797e3c5 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_THUNDERBOLT3_DOCK_GEN2 0x3082 #define DEVICE_ID_THINKPAD_USB_C_DONGLE 0x720c #define DEVICE_ID_THINKPAD_USB_C_DOCK_GEN2 0xa387 @@ -9581,6 +9582,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_THUNDERBOLT3_DOCK_GEN2: case DEVICE_ID_THINKPAD_USB_C_DOCK_GEN2: case DEVICE_ID_THINKPAD_USB_C_DOCK_GEN3: -- 2.37.2