Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2812095rdb; Wed, 4 Oct 2023 12:08:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRlW2ncSCDthpztVbZRRfvZdMqEK6bNfPf54wzFX71qPJcbpO/OIFW8RVmPOmaPC58XNq2 X-Received: by 2002:a9d:77da:0:b0:6bd:1059:8212 with SMTP id w26-20020a9d77da000000b006bd10598212mr2900210otl.26.1696446533509; Wed, 04 Oct 2023 12:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696446533; cv=none; d=google.com; s=arc-20160816; b=ZDBdPq6+Q7fqrofMjQQpCO2TqRqEpbcDlxTxVxTwRUhWv8QZalcTMgcooKSN6aMld1 /1mE0IuPyZLhx6ffxNuKPJFFVnTSsY+fvJyTMwobPVb2Bu0qwVKs5LGyoeJkcJUYtg7T Cy+p6m0swnTDdgxWW8w3YK7xe+xSNPJFRbuhUve7ZILIWfj+9sl3UWv7LZ1Eda1UtF/5 z66T9m8wvcUOiSAqtJP7dUfzsH93PVk5IN5D0EFcG8m2z5v5A/NWntw3H21m4HEw0Tkq bgbcntA3gE8yczUCxRoGPvS8k0QqQVjzNeIpIO7/OZKvcdaObVzk7ZKGKv/MIecDDX28 jOYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Q97ecACAfJrfCgKe04xjUNNub/m/lYb1+/PIuprntoc=; fh=YrwL1pXHyCTEz7hJzM8aC3KH8vbNnNnZDqyQr/rkT+Y=; b=uDAPnm5NpRh9MkLpacmS820fTKV+H7P+H3F7hLVBqrvjp6vabLT0NJenPG9HIdWOq+ l2zCZgtOPWcoKUzihRLRdVm5a2U1DC1+FihmqERJXqa22ezhcH9kJKSTLIEgemrFZorT voou1eZbwtEJ5qWtH+s13yzzo9yOdti+n+bm3iR6Xw4JglUrOQPbqpvdmXRLL2hSsU7m PrwNcSM/AATG1LIQhVIDXXW8sR5PnjkzFDeyFSLk5sDQeXPo6JjqhdPknuD9r4qjfuXM tdDjyyKq7Dk93HGpeFt20keEB7+qiGlwMQnh//OVuNSDG4IWGYaGADGPTWqEruLI+pn9 x5Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Pbzo5QaB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id 139-20020a630091000000b00565e01815f2si4323835pga.732.2023.10.04.12.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 12:08:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Pbzo5QaB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B04AF802C902; Wed, 4 Oct 2023 12:08:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245407AbjJDTGZ (ORCPT + 99 others); Wed, 4 Oct 2023 15:06:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245001AbjJDTGO (ORCPT ); Wed, 4 Oct 2023 15:06:14 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F66BA26B; Wed, 4 Oct 2023 12:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696446044; x=1727982044; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=+7Kuxlc0687hSqhXVR358o6+jlXhpr+b6WxOI4qYX08=; b=Pbzo5QaBpQQU2HWem31b1l7Kr+1k1Riepx0VrrZ6c8J9a9nkcCN97Rdi jI2tJZfVMbDh5kpDW77jIStXGP1rdl1vkx6ypcfsmqu9oFAqZNZKf0Tla JuMmlgo5/S0R6IGLaGiI8HPGr9VwzSkNT6G55eqfdsAhFBbtiWFmzBc1R UG+90I11wTu7v5zUTWrCXrvTB0m0cE0dCi3nGYT7IXznYrpuORGX7uSIG Htecpx+VXcg7SRSYeslaE3CpiqIM+MhK0zKzXK5/ISXifadbrUQShcVd0 mIYU2y9OYlZenW0OYdY6ZSUlPIcy9jN04NpMiJY0mOkMcs3ZHK+Hpt4uK A==; X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="383175704" X-IronPort-AV: E=Sophos;i="6.03,201,1694761200"; d="scan'208";a="383175704" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2023 12:00:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="751445426" X-IronPort-AV: E=Sophos;i="6.03,201,1694761200"; d="scan'208";a="751445426" Received: from mfmousa-mobl1.amr.corp.intel.com (HELO [10.212.98.56]) ([10.212.98.56]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2023 12:00:41 -0700 Message-ID: Date: Wed, 4 Oct 2023 15:00:40 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] soundwire: fix initializing sysfs for same devices on different buses Content-Language: en-US To: Mark Brown Cc: Greg Kroah-Hartman , Krzysztof Kozlowski , Vinod Koul , Bard Liao , Sanyog Kale , Philippe Ombredanne , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20231004130243.493617-1-krzysztof.kozlowski@linaro.org> <6628a5f6-ed22-4039-b5c2-2301c05c7e3e@linux.intel.com> <2023100453-perfected-palm-3503@gregkh> <624b044a-1f0f-4961-8b57-cb5346e7b0d3@linux.intel.com> <2023100452-craziness-unpopular-7d97@gregkh> <04c5911a-a894-44b3-9f0e-fe9e6de203f2@linux.intel.com> From: Pierre-Louis Bossart In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 04 Oct 2023 12:08:23 -0700 (PDT) X-Spam-Level: ** On 10/4/23 11:40, Mark Brown wrote: > On Wed, Oct 04, 2023 at 11:16:09AM -0400, Pierre-Louis Bossart wrote: > >>> matching the name is fine (if you are matching it against an existing >>> name) but expecting the name to be anything specific is not going to >>> work as the name is dynamic and can/will change each boot. > >> Not following, sorry. > >> In the SoundWire context, the device name directly follows the ACPI or >> Device Tree information, I don't really see how its name could change on >> each boot (assuming no DSDT override or overlays of course). The >> platform descriptors are pretty much fixed, aren't they? > >> Intel and AMD make such assumptions on names for pretty much all machine >> drivers, it's not really something new - probably 15+ years? Adding Mark >> Brown in CC: to make sure he's aware of this thread. > > FWIW DT is much less affected here since all the inter-device references > are explicit in the DT (modulo needing to work around breakage) so we're > not hard coding in the way ACPI so unfortunately requires. Isn't there a contradiction between making "all inter-device references explicit in the DT" and having a device name use an IDA, which cannot possibly known ahead of time? I think we keep circling on the differences between "Controller" and "link" (aka bus). A Controller can have one or more links. A system can have one or more controllers. Intel platforms have one controller and 4 or more links. QCOM platforms have one or more controllers with one link each. I am not sure how this IDA-generated bus_id helps deal with these two cases, since we can't really make any assumptions on how controllers/links will be started and probed. What we are missing is a hierarchical controller/link definition, IOW a controller_id should be given to the master by a higher level instead of using an IDA.