Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp428005iog; Thu, 30 Jun 2022 03:37:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vpbD67zOBwzDJNOS7DXgazkaoAEEBdWaBC/+9XrAjiQaLN8ktd0v87PgLHnBDbli4TLnXR X-Received: by 2002:a17:902:b289:b0:16b:940d:18bb with SMTP id u9-20020a170902b28900b0016b940d18bbmr12050778plr.83.1656585421908; Thu, 30 Jun 2022 03:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656585421; cv=none; d=google.com; s=arc-20160816; b=KrIErg6N6j/5tkJamqPnJYResr28rKT3xFoDIogb+wY3nri1CZ9KOc+9YYqJ5qsSWV om7pRNT/TWo3POQm8R2Z+0nuZAA7I8286Bqm3Ny9OnsIi+q1+aXZf0i5SOXnr8geytp4 dJjh13SSzrkxyMZ2nlE/8541z1G5gav3SoqfecKMb79jmt1l4t/NzOXz2cIbk9agIt31 WBsm1sR1U52+kYgEitbmhnPavqpQoygm/gmoynqzPKWxbXHQtnIZYTqagD/y0Zoxba/Y DAAS4O4el2cCnDwzD+DBuQc2h18LwwQ1DcrbCQMSwPHnqqEgM3n1ZyvBKAapg14z+sRA 0RwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/Yc5zzD2+VTmk0OnRVFpUfRwFwsjLpl62opOLXWhoKM=; b=lk8oZg9iJOZEbpDUS1BdZnc9e2+BlJJDWOcE4VnwM7BCxLOsv9IWmXynDGHtXWBLxq 1j8BMB/zwwRbFN3FnDUsqAsw3yyFq36UjhRO5y0x/2VhmWrnsiuATxOoZRgGAgOdkt3d 0iXV8wZAXKltZaa5YH6j3TB2kNFSoL4iycorDs08dsxI9PHIKs7PLKfMTedOmZ2HG+Zk xkNh0H+HJhI4tW3KPgiym1hwIJPBwS9BpLCQFqeRZ7LdNv8sMubMBZmn/lZF5zHxCJkQ vuRRbaNKGpZIuahllCDCeVrdfpAQfB8Dxjwu7YnpGQTOgaAeqUAF9lVpDQ8U7LhGry0Y L7tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W3daoP71; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020a634001000000b0040caec24b47si26492652pga.340.2022.06.30.03.36.50; Thu, 30 Jun 2022 03:37:01 -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=@intel.com header.s=Intel header.b=W3daoP71; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229964AbiF3KSo (ORCPT + 99 others); Thu, 30 Jun 2022 06:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230341AbiF3KSm (ORCPT ); Thu, 30 Jun 2022 06:18:42 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59C1A11473; Thu, 30 Jun 2022 03:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656584321; x=1688120321; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=kPmwEBc1KMTjojvqHZLvMTlSrK6OdbuwU9EWM04xHY4=; b=W3daoP71+atQEBfLPS/6JWnzcCiDeTsDtduxGmwEQk3Gzx/wxJtZo0SK unJVSGq3opZ6wnaMScZSgEY8p/Fyhh/6KRMxA7I4hJHevgbF2UJlyKCaL SQIi4gFHm+g+vnmGGIHSE5V6KCbhmDkwI7ybLIOjSZjPFBrPdk+eie8Bb K+IaNYBAHt2isFdW1qkFbMECiIKtXpvwsCgCkkAuWZkNww8xbqUN2XlSV C1Z9oqUqrlcmEbPlaLmVeKqgcJSCXrog6ZZ7evUYH66dRRX/yb9LRBvuA Ah2MtwL+QIJlKIQFDCCqpSqad+kgHDc2ilb43LBA1uunkNyIdiy0OChYz g==; X-IronPort-AV: E=McAfee;i="6400,9594,10393"; a="279854332" X-IronPort-AV: E=Sophos;i="5.92,233,1650956400"; d="scan'208";a="279854332" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2022 03:18:41 -0700 X-IronPort-AV: E=Sophos;i="5.92,233,1650956400"; d="scan'208";a="541279538" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.162]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2022 03:18:36 -0700 Received: by lahna (sSMTP sendmail emulation); Thu, 30 Jun 2022 13:18:33 +0300 Date: Thu, 30 Jun 2022 13:18:33 +0300 From: Mika Westerberg To: Heikki Krogerus Cc: Prashant Malani , 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 Subject: Re: [PATCH 1/9] usb: typec: Add support for retimers Message-ID: References: <20220629233314.3540377-1-pmalani@chromium.org> <20220629233314.3540377-2-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, 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 On Thu, Jun 30, 2022 at 11:17:59AM +0300, 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? I agree this makes sense.