Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3072906lqp; Mon, 25 Mar 2024 20:08:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUys3+9WO0flnJjRO+ncy5rtrlxjTGfd+DLtQWC6tGbEFAcgE/huXeS6quyx3K7lbsVSBxT1rnUvcpAZzH31Yf3vk48CHwy36PDnx3Vuw== X-Google-Smtp-Source: AGHT+IF7ekqWlz5gLK50JcMC6ggas63/IPrJYExoPYQpj49aYgSI1M/b66y8KKqZi/t4+z4adOgS X-Received: by 2002:a17:90a:600e:b0:29b:f8b4:28bd with SMTP id y14-20020a17090a600e00b0029bf8b428bdmr6653012pji.12.1711422482326; Mon, 25 Mar 2024 20:08:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711422482; cv=pass; d=google.com; s=arc-20160816; b=IPlKVYMNNWAqrjaSlyUiuh+9Cf+T63RbnF5wCkkZDHbe1qrBnQPFlAy0bEsie9kif9 YXWH0LV6mfi4tOe61gMD3fnm9oKa61XsSTAIng1ZBPKKpnPp6VMNzws4Ymwdz0NZb7ZM fTavrNIwj9SoAA9DcV2rAW1XNIHrH1BxIQPhRnv6bplOfUX2ukeZiVf1vVRZQVcPgGzH xypg5fd/bWAfKSZC0VuXUCKVq63JAZxJJNP47g43A2Y/roPQ5A/znNufWTLJgF3ZMfNv AdWUXION6kRSrh0zTGQ7df5rSH5nszN/OHu7Trs3AZsaEpWUNznrOnnmZXyHETjFHpLP NoqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=swCBvVxY19q5QCFoCh3CilyHYDojXjj2iBKqZTEVPTk=; fh=dRIbmkfH7M87cChlLZuQjkKekkw6bSdIBvbpzSVT1zQ=; b=ZctnnEogbxDg0uL5+H80BhGjsMYoCP2MZ4gqOmKJZTur6xFlNIuIIBkl/yyOrr/XIF +hzFlNDeUB8q5hK8z1L9AWJdmvIMhVjdC2DFsFgPLRjsqsxqErnEGQAgn6d33JbAwCV3 j6mgaddL3cezWx/Y6WlIEIWLHFwM+SiGyRn7idDtS4FJngxFA7J4AJpeRxoFiaWr9hQg 2JZFvZoGpSXJ27bD574tofo0VmelTUJjgVQqw5e1u7/07Yz+EYj63l3XwHhbwL5gWzY1 k1p158mGZEGm/upTXScjrJXmKCiuUSzOGNlmuStFPkjEPaGukyJ75/lDVNgjef7lyep+ RPtg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=P3v+DbSr; arc=pass (i=1 dkim=pass dkdomain=jookia.org dmarc=pass fromdomain=jookia.org); spf=pass (google.com: domain of linux-kernel+bounces-118221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118221-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jookia.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q11-20020a17090aa00b00b0029bc32659b4si12569662pjp.30.2024.03.25.20.08.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 20:08:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=P3v+DbSr; arc=pass (i=1 dkim=pass dkdomain=jookia.org dmarc=pass fromdomain=jookia.org); spf=pass (google.com: domain of linux-kernel+bounces-118221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118221-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jookia.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8704A2E8DE9 for ; Tue, 26 Mar 2024 00:42:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA9971BC40; Tue, 26 Mar 2024 00:42:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jookia.org header.i=@jookia.org header.b="P3v+DbSr" Received: from out-181.mta0.migadu.com (out-181.mta0.migadu.com [91.218.175.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2463B1B285 for ; Tue, 26 Mar 2024 00:42:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711413763; cv=none; b=lmCJ24nDQpWzyjjDM1oWaD4WGa6ZLm+2T25olyJNbPLNA3qC/wQcQ9m0z66F3mFDU9FaD/Cx3DjSROtiP5mBRn6SLZom0f5DyEPQYWIzTjAb4Zko9mFJCieOhDdl/fDSd/nBNVEqBqoCTkASVjiClN63VZrSXQH5JjtwQxAHWSo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711413763; c=relaxed/simple; bh=4QJ/6/jO0Ghq8D3lI04piss7UYAkTLyaKjBohqFRuak=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PlI+CpSx0Ns95/Umjkh3ySsaSl6gPkvwVt51q8ehQNISGuiRF4Kc6TJ7vUpkjL+6h7YAGM1gp+bTTujD/QAJGOIFnV0WR1ICLN59wt/ZDcl7LMDkXVwbuXfRg9fVZQbjKCOWFG4X8jGmfAP08k7fwGJaCIbgNRnUw65g60U3Fc8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jookia.org; spf=none smtp.mailfrom=jookia.org; dkim=pass (2048-bit key) header.d=jookia.org header.i=@jookia.org header.b=P3v+DbSr; arc=none smtp.client-ip=91.218.175.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jookia.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=jookia.org Date: Tue, 26 Mar 2024 11:42:08 +1100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jookia.org; s=key1; t=1711413759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=swCBvVxY19q5QCFoCh3CilyHYDojXjj2iBKqZTEVPTk=; b=P3v+DbSrjxwcEzz5xiHAHhnXdU44P5rN3DDSC11hcYlHznJP9DLvYzk2BtIehC52iA5vYU 1UehtPVXzvCWfTIqLWEq2QfUOyExwWrQhJFul4/6Hvw0ajVOsU9PpMxZ7kUEd6j1CF89y0 fwg+VI73Atfbj3S+gw3eE4WqSXBJ7NSzQ7yBPyajg4Mmq5hkhtXdfYIGWxvnBOtTWFo3mk bOTIZEuwNtWTDll7uk0WYHO1XZeKhyrc3sjapUnl2pKorq6PaV50X/JJ0BlN7EIPKfaBtL V/NiQnFbJhJuIMTw7zqsGuEWg7MZ2tceTPR2W4tHiJqALMV5WIvFzw2BrxCLSg== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: John Watts To: Saravana Kannan Cc: Rob Herring , Frank Rowand , =?iso-8859-1?Q?Herv=E9?= Codina , Luca Ceresoli , kernel-team@android.com, Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] of: property: fw_devlink: Fix stupid bug in remote-endpoint parsing Message-ID: References: <20240224052436.3552333-1-saravanak@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT Hello there, On Mon, Mar 25, 2024 at 03:49:44PM -0700, Saravana Kannan wrote: > Ok, I think I understand now what's going on. fw_devlink does not know > that "sound" device will not populate "multi" as a child device. > Typically in such situations, "sound" would probe as a device and add > its child DT nodes devices. At that point, the cycle is only between > "multi" and "test_codec" and fw_devlink will detect that and not > enforce any ordering. However, in this case, "sound" doesn't have any > child devices and just depends on the remote endpoints directly. > > We already have "ports", "in-ports" and "out-ports". Is there a reason > none of them will work for your use case and it has to be "multi"? > When you use one of those 3 recognized node names, things are handled > correctly. audio-graph-card2 uses 'multi' to define DAI links that have multiple endpoints. It also suports codec2codec and dpcm. > I think the right fix is the use of post-init-providers. Because even > if you do the above, all it does is let fw_devlink see that there's a > cyclic dependency in DT. And it'll stop enforcing the probe and > suspend/resume ordering. Ideally we want to enforce a specific order > here. test_codec first and then sound. Is there a way to do this automatically so all the existing audio-graph-card2 device trees aren't broken? As it stands it seems like this driver is now broken due to this change. > Maybe. But the logs would be more helpful. If you have a way for me to get more logs please tell me. > > > post-init-provider = <&multi>; > > Did you try this? Did it help? > > -Saravana No I haven't tried this yet. I shall try it soon. But I wouldn't consider this a useful fix as it requires upgrading existing device trees. John.