Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp834248iog; Thu, 30 Jun 2022 11:01:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tIRD3Dg+qIFk8tssz8w1nMmzVfzWfQnPFy7TrIanZ/Cg83lATele2jffKPvLRH9gYBjqkl X-Received: by 2002:a17:90a:d3d7:b0:1ef:ebe:d613 with SMTP id d23-20020a17090ad3d700b001ef0ebed613mr11448939pjw.240.1656612100072; Thu, 30 Jun 2022 11:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656612100; cv=none; d=google.com; s=arc-20160816; b=CU/pyNpgu904YK16uX3jtS9GZDB5/P5Oo1C0CSSRqoGP+qiybObJLmM3X+35clgdV9 57AGC8iSti0mt88i9gJ+qdhJtr9dsDUz2hGLmyQ/PNCBP38lQJWVQGAj5ApAv6jMePJs 4r4epSWy5Z8/HlOouvB59QVuDtat3dPT7O4NOnxJBsvK9shkJsW5SjPYIK8S7UKByMYz kLzpzXshy/V7wo65bt+Zg7okTdL0XHdc8KsFTYqUhgDW+Yc/rchAhBMx9VH7I5SFVq7S 6tePxakoZv2nq3Gw525XPpt1EsC9BuQ+X5oAaxf9Vlh2SuijWrvjra9phNdxTEXjkLv0 pumA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5wbVnB9JXd2WFukFG87rkbpuCu8ljUUZ2a2nEUPVBiI=; b=Cj1dsyHWE+IYj2AJCjMgP668kZAho8PiNleo9fE24v2fQRJ3YN/mssQEy7jZ98n/pT IJij9tkaMZPvHdKyBvMwWlhI5X4Ac9XdDFWa162ZfN+fyhxGh7sSJeyNJR6RAH9CKxac e/qvWJ8Pv9L7s6lRapJD1PftsJCHj7Upb86GlJeG/xOkL7ZsR13wnSry8yq1se7EyKoO L+5AoFbh9cNp4LcgFWWpLGUutdxp/68R/ZoJAcnBtXOPMZ5jceCzpYo+bdOJFVzP+T5J syq1ytc3zQCofK1cdON1Uyj0m7N+oxDn/GcxHamYgaXlkrMYhnOgJGMSiTro5izTbA+5 HfgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Wljl2fDN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g127-20020a636b85000000b0040dffa70d5bsi16687670pgc.37.2022.06.30.11.01.10; Thu, 30 Jun 2022 11:01:40 -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; dkim=pass header.i=@chromium.org header.s=google header.b=Wljl2fDN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235921AbiF3RNl (ORCPT + 99 others); Thu, 30 Jun 2022 13:13:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233863AbiF3RNj (ORCPT ); Thu, 30 Jun 2022 13:13:39 -0400 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B37634641 for ; Thu, 30 Jun 2022 10:13:38 -0700 (PDT) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-3137316bb69so185623537b3.10 for ; Thu, 30 Jun 2022 10:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5wbVnB9JXd2WFukFG87rkbpuCu8ljUUZ2a2nEUPVBiI=; b=Wljl2fDN1PoFOcQQnC0+Se3tn48Vi1gCJaFUSK1BM2JnXaPC4srY60jaAXXLHqUmmK Dk1JMzYTq7FF7SIL7nvY46II4eACkWpMLz2EBMWzITLtdwAvA9Uy2g54/huf3BJq52Aj QzizP073+OeEZ0hQvd4fv5lDjfuWPUjxrAI7I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5wbVnB9JXd2WFukFG87rkbpuCu8ljUUZ2a2nEUPVBiI=; b=TNJR9gneO/cqc94VzMMzExb5AyHaPSwgO7ubFcVyWXRiqtsyBsqy16beoi7e8WdvDa fqb67zmw8OM0aTO1LjF8Mop3L07OIcxUeDDEgDFGv10ZNdoVLHMnEsbHbxwdMpznd392 MzjlmdNxsB3hrN04EQTrNRhBFK9GgRT/XCVM2ex4vRR9/xJkj4TmyXKdK+jv3D1YX9K0 yYbg0dLf1axXVsFN8KWBvQF/WRS+0IosBaYPlPV6m/OsbA7aUxTLlrnUn1QPfScwEP5V ieMvEvszxK9GDwPL6klWGLwEyaZbVKddtW+ii7QQYJfBPACpHmw2lt0s4+1Xkqhrfjue Rb+A== X-Gm-Message-State: AJIora8THXAAIizNKqE+TU60bKdvr207ZvKWJ/oO5eXalUMbPuikx3jS PaTrWHTFMzk59Mq6DEmvlz2k6tPIu6/WwoLTHILZ1Q== X-Received: by 2002:a81:8a44:0:b0:31b:c2d1:43a4 with SMTP id a65-20020a818a44000000b0031bc2d143a4mr11847676ywg.387.1656609217887; Thu, 30 Jun 2022 10:13:37 -0700 (PDT) MIME-Version: 1.0 References: <20220629233314.3540377-1-pmalani@chromium.org> <20220629233314.3540377-2-pmalani@chromium.org> In-Reply-To: From: Prashant Malani Date: Thu, 30 Jun 2022 10:13:27 -0700 Message-ID: Subject: Re: [PATCH 1/9] usb: typec: Add support for retimers To: Heikki Krogerus Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, chrome-platform@lists.linux.dev, bleung@chromium.org, Daisuke Nojiri , "Dustin L. Howett" , Greg Kroah-Hartman , Guenter Roeck , "Gustavo A. R. Silva" , Kees Cook , Sebastian Reichel , Mika Westerberg Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 Hi Heikki, Thanks for taking a look. On Thu, Jun 30, 2022 at 1:18 AM Heikki Krogerus wrote: > > On Wed, Jun 29, 2022 at 11:32:19PM +0000, Prashant Malani wrote: > > Introduce a retimer device class and associated functions that register > > and use retimer "switch" devices. These operate in a manner similar to > > the "mode-switch" and help configure retimers that exist between the > > Type-C connector and host controller(s). > > > > Type C ports can be linked to retimers using firmware node device > > references (again, in a manner similar to "mode-switch"). > > > > Signed-off-by: Prashant Malani > > Cool! This looks really good to me. > > I'll add Mika here, just to keep him in the loop. Thunderbolt/USB4 can > control the same physical retimers over the SBU line. Right now there > is no conflict, but I think we want to later be able to use these > devices to upgrade the retimer firmware, and that is something that > the Thunderbolt/USB4 already does. So let's keep an eye on this. > > I wonder, would it make sense to later make the thunderbolt_retimer > devices also part of the device class that's introduced here? I think > that way it would be easier to later figure out which > thunderbolt_retimer and which retimer_switch represent the same > physical retimer. And perhaps it would also be more clear for the user > space to have a single device class for the retimers? > > Maybe the device class could be named just "retimer", and the device > type could then be named "typec_retimer" instead of "retimer_switch"? Sure, I will make this modification in v2. I assume we can still keep the firmware node handle as "retimer-switch" to keep it aligned with "mode-switch" and "orientation-switch". Thanks, -Prashant