Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2219631pxm; Fri, 4 Mar 2022 11:39:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzInM8+lK2vLLSd0RD0oqA984KvKy85+h7fP/4q7dGv1dw+OSEuSllBrfR4uhX8lwTaJ2wn X-Received: by 2002:a63:d1d:0:b0:359:b894:23d1 with SMTP id c29-20020a630d1d000000b00359b89423d1mr27791pgl.132.1646422766456; Fri, 04 Mar 2022 11:39:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646422766; cv=none; d=google.com; s=arc-20160816; b=lx6yjyey3UrwBNgJ0NTzCCmoIjg5jxbaWDRmTf0B8MRXj/XO1q/1OKkCxYy8rN/jGT wZ46aLtkW6zyLvfa9myOJz+PAKwQm5mRBRR7X4NIvmQG827IjkdtJ4yrRIRdcBbiUbJx +TgA2grB7BEc5X3DfXJx1Uppj7MSUUHQI/1M4Dn4xZwoVRAe3WWrN8LhznrYYAK6nu65 ORE56nVzuvDwJZSGM0FgHhTDXN/zJdMGO8tVA1WHR1I6guAd3EajldP8ZY4q+cjOBJy5 N6z7rn2MeBoqhMW+Ppn1Nn3oCtAOjPDSU5ugfr298f20gmrKjTDF/0KEqx3y3eFXpMKC GpTQ== 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=P0D5IeXnO7eoTQ3lQ2BqlwoYjOo/JrBW2lag1exCWLI=; b=JTRPrRYny3yzIwIoYWfjTm6IDP5XRuLTofNK2+w0kZZmKD7jSZrmJCFvOsL63rQp1S SnuZgfcIOSFwY9nAB/BOZDFE/nhz1q4rkdlwlKeOTmHMu7vsBvgH3ViTC+Q1kYUaEWVm dqHTScxmthyEOsbSXU6yOSyMx5bYzMXbXIEXCIPHwNDatAF6mYL8RV4r0TrKY6lYWNog NrHKRIZVcmO9oU88pGR84klNwNG5wFA3Ql0qAfKchGngVN+Jx1wD3qwWws+iqog/BeqH P6XifLyQJ84WQ1LXNvvW4mR0TtBC4NNXxxZpSfqNchZn6CXQWEz54/lCkhb8F7xIYlb0 kT/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=idIpOnDT; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j12-20020a170903024c00b0014f18b7f08asi6434809plh.541.2022.03.04.11.39.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 11:39:26 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=idIpOnDT; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 77F1F2275BF; Fri, 4 Mar 2022 11:15:52 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235043AbiCDM7l (ORCPT + 99 others); Fri, 4 Mar 2022 07:59:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231825AbiCDM7j (ORCPT ); Fri, 4 Mar 2022 07:59:39 -0500 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A58516E7D2; Fri, 4 Mar 2022 04:58:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646398732; x=1677934732; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Btv+CYeKwUyKPv5JPjPWjvpuR50skIoOrrEn+RtgT8w=; b=idIpOnDTIiC9oc1zcUv9+5uIubDgfVSBjFkohxwPoEqaV5FHeccAEGbh CDMxSpyAHcTVY43ELjq+SMKIKidBdJOwEaa22LLV+FDTW82wBYZOhCUmb MkgbciD3BHbxpy+bcOFMghFtItQsyybqV/29V2HqWGDFJ1/vdHc+sT21E W14WaDcZUJdGsPcDYkNJCVEAwgvjrWQ37K+LRkL6CHxsj7sxqigXueZR+ J/vxClD1+pxPtWI1Gq1ExkruAJX1inoOxVmnnSTz97quWlnbMrgDmAuhy 9QVqN9D1mkKPWfjfLOLEu1Mn+9ubYLTwmfJ0oypCq4Z6YsaTwcek2RJP+ A==; X-IronPort-AV: E=McAfee;i="6200,9189,10275"; a="314684644" X-IronPort-AV: E=Sophos;i="5.90,155,1643702400"; d="scan'208";a="314684644" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2022 04:58:51 -0800 X-IronPort-AV: E=Sophos;i="5.90,155,1643702400"; d="scan'208";a="642503282" Received: from smile.fi.intel.com ([10.237.72.59]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2022 04:58:48 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nQ7VS-00BE1b-FY; Fri, 04 Mar 2022 14:58:02 +0200 Date: Fri, 4 Mar 2022 14:58:02 +0200 From: Andy Shevchenko To: Bjorn Andersson Cc: Rob Herring , Daniel Scally , Heikki Krogerus , Sakari Ailus , "Rafael J. Wysocki" , Hans de Goede , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Dmitry Baryshkov Subject: Re: [PATCH v3 3/6] typec: mux: Introduce indirection Message-ID: References: <20220303223351.141238-1-bjorn.andersson@linaro.org> <20220303223351.141238-3-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220303223351.141238-3-bjorn.andersson@linaro.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, Mar 03, 2022 at 02:33:48PM -0800, Bjorn Andersson wrote: > Rather than directly exposing the implementation's representation of the > typec muxes to the controller/clients, introduce an indirection object. > > This enables the introduction of turning this relationship into a > one-to-many in the following patch. ... > + dev_set_name(&sw_dev->dev, "%s-switch", > desc->name ? desc->name : dev_name(parent)); Besides a possible shorten form of dev_set_name(&sw_dev->dev, "%s-switch", desc->name ?: dev_name(parent)); this lacks of the error checking (it seems in original code like this and should be fixed as preparatory patch for easy backporting). ... > + dev_set_name(&mux_dev->dev, "%s-mux", > desc->name ? desc->name : dev_name(parent)); Ditto. -- With Best Regards, Andy Shevchenko