Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1509541lqp; Fri, 22 Mar 2024 18:54:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWs/XUqVx1MxgQRAfZKBCAazAtXjYPKJXhgwKGNbUD5rF1C5BMjh8Fd5Ov3rq/Rzy3Ofbswym4sWV5N0Xlo4oO+gcdFWVKaOZG1QCl2dA== X-Google-Smtp-Source: AGHT+IF68qQFtAOSoim5QO3acwiMPY+nd0IeTD4XyW6X19SiFxKHbXdZhf/m8dplt8WdE4RooCh8 X-Received: by 2002:a05:620a:535f:b0:78a:da8:58e2 with SMTP id op31-20020a05620a535f00b0078a0da858e2mr1182880qkn.9.1711158890285; Fri, 22 Mar 2024 18:54:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711158890; cv=pass; d=google.com; s=arc-20160816; b=GzawktliZ+beis0vWy6At6M3DCKqvj6KZk/lT5UzK85f88Bbq7aUSeo/x56JO5DCty KWqXNbhzDSN7B/umkwSc/PqKH76ZQgSW7qcBqcvBDUCXojRaFWaQs38Nul+Z1EmadSTF nbgpgq2cv1yBb0q4iOvHXSnQiMWLR3G/levmTkvjjaKqSOAZo0hCBU1zjzKQfaIwUQdj rXeHFNeUYcm/6l5uvpYF9SIjyyb5DGcoXGZZlzigUktfUqligE8/u3SBoC2LW9MUtSVe +JuMya0UGdrFiyhMJkYXs9Kr3rC2QR5UQRXQFMKyHKylRY/ojYoGIp8ciuM//3NSSVVh VanA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ugca23DDk1bNHPUabaB8d0i9NjKoaai/ycUEgKQclnI=; fh=EUR0FNDt3pWwUepnTb8i4/dC3k+a6rfCLIeDOVYvH64=; b=SUTvH2eue3t01URs8mOSL1pLZk4Tk+tSaAVxaX2GvpCXRTCo73+uB+Aat7huPuKDnO UO9i8ZNioKzuVkQK+k/evfGs7ZbPEByPzonqNvrjyW7fwwv27MnJR84uwJuKiCVXCtOo ncr5SjlH/xbBGYdrruX6TnE/RLBYlJMCEFP9/AgS/E8Fsyl2UN51xLB13i46MeCAy2G0 hFnBu+VX0Oji5xovheoOcCLVzJS8No4296v8Jf8xwOu8ZOf9VRzl/SfiTeeHLXcjDlz1 vuhAoiujek313oL65+Sh0JZ6pEywooOCPZbNlr1iq61KMrWjxFc0rg6qyYpH2tvXBuUL vHAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hk+hKWJ9; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-112170-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112170-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v19-20020a05620a0a9300b00789e7b33bc1si807615qkg.592.2024.03.22.18.54.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 18:54:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112170-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hk+hKWJ9; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-112170-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112170-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EE0821C22B7F for ; Sat, 23 Mar 2024 01:54:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 418031362; Sat, 23 Mar 2024 01:54:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="hk+hKWJ9" Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B624F522E for ; Sat, 23 Mar 2024 01:54:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711158876; cv=none; b=pCMC6WCG/PgbhHfbp5VTp1rDwhJHqafwqCiAnC6LneJHnc+b2tcd7yEVReKv/Ye2ybkrGdUXXBtsnu9exzztbwqTd/2Py3hK23wtZik+7aLZ4D/XCwDL0GSvpuykZbZNLzmU9J7TDejxqfCpVB3OkordyRHxB4uTDbsQdq0Bim4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711158876; c=relaxed/simple; bh=MRVrKLMuWBszjs8xV63cU/2mn4oUBSIImMtBXLzstns=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=sfJJ2c9KcHuTP2QiI9UF7BuzP2IO5SRuHwYsoj6c5F0UTxo8rYb4k3nHd0VJQB2AFsrE3hBcxotlvyyeFlwcsY65V+33qZZ7TAOUGa1q9fgKzzwAfRlJWfr7BBzwkDlzEz9E5w3oJ85J2/Gqkydud8aKGZnYZhK+pIBUAqhyPdc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=hk+hKWJ9; arc=none smtp.client-ip=209.85.160.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-430d3fcc511so65451cf.1 for ; Fri, 22 Mar 2024 18:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711158873; x=1711763673; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ugca23DDk1bNHPUabaB8d0i9NjKoaai/ycUEgKQclnI=; b=hk+hKWJ9M/fJI9tImEsoYU4ZGd5SzkHC2XUtma2s1bkoNjxKT+2Q4wzKVvYHY/4Loo q/R3/BI2Ss9N9EHaiANgKdxPAeFIGM0HkJx1wmHmd4EgeFMFqcAdw4KfPdun8C78FAjR ODRHG2kLgsLEd1FnuT8GS16HjBI3Fm2t8AGfih0ZrqgGH2otZlt46aLd1oJBIko0W8+E 07k59mxzt3QfLNGh4oQ5oOWT9ZQsFdxJ228l2hhz1y0K+Fu/iJ1hZ5SPGrELsKt7LN7v i0Bn7oFXv+yuYPPf1PULjvTahvD1tX6PTRi02d3eIJYf4NBAWQZeMMdhbTPxjT4FWcn/ SnvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711158873; x=1711763673; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ugca23DDk1bNHPUabaB8d0i9NjKoaai/ycUEgKQclnI=; b=ZHZ4j2gNQgrHxa0FlyjCVSGrUNV3oWSnejzMXhXm+KmaM13E2AQcIK5DlUtgEjpAse WaD0e0NY35aPGb71gSUDr9krdqrvqtJNXhWgx1kGx6KgTcGTN0GTu/xICEJ5LRB6zFMX l4ttxFXHKllrSYmObmFZtyH2ujueEUC/V/elk+EaMomSvt1swMo9T4FZGxszzvqUe679 VHPtFj3lkXvV2tU0ninkbV+ZwRnw1mBYPa1VgianhP4cfsnisN+R0Jn+5i34aFe5Y7oD 6KZ3QOb86gtSYU8GBsZh/a+P8VpdxDLLTSBFJhdD5kMH2w0oltZpTURmyffzQcWJZf2j MY6Q== X-Forwarded-Encrypted: i=1; AJvYcCV/XzCXgmlKoCn2TLy6K9AU0qz4OwXftQy/FvSkN8FgcimZJoK/csYwcbsQy8PluhYLKA/C8Bp/gBg8TxfGBfLTjiN8VDRCgWiSyxfw X-Gm-Message-State: AOJu0Yx/rXzPe7rgOuYDRozXh44cr7La4aCmFN3GXqOlN3k5n3wk1Y3u ulLurS1z+6AnVj1coxTW+PWpUmg1G1OBkK+lCeSx39TXecxVVSXEaotO+D0F1oQVlgNqhOR5MRb 6A5E2iaPQXhjrpGm0hlQdIQnFjGwjU5cqICVK X-Received: by 2002:a05:622a:92:b0:430:a74f:b45e with SMTP id o18-20020a05622a009200b00430a74fb45emr784631qtw.17.1711158873468; Fri, 22 Mar 2024 18:54:33 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240224052436.3552333-1-saravanak@google.com> In-Reply-To: From: Saravana Kannan Date: Fri, 22 Mar 2024 18:53:57 -0700 Message-ID: Subject: Re: [PATCH] of: property: fw_devlink: Fix stupid bug in remote-endpoint parsing To: John Watts Cc: Rob Herring , Frank Rowand , =?UTF-8?Q?Herv=C3=A9_Codina?= , Luca Ceresoli , kernel-team@android.com, Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 20, 2024 at 11:05=E2=80=AFPM John Watts wr= ote: > > On Fri, Feb 23, 2024 at 09:24:35PM -0800, Saravana Kannan wrote: > > Introduced a stupid bug in commit 782bfd03c3ae ("of: property: Improve > > finding the supplier of a remote-endpoint property") due to a last minu= te > > incorrect edit of "index !=3D0" into "!index". This patch fixes it to b= e > > "index > 0" to match the comment right next to it. > > > > Reported-by: Luca Ceresoli > > Link: https://lore.kernel.org/lkml/20240223171849.10f9901d@booty/ > > Fixes: 782bfd03c3ae ("of: property: Improve finding the supplier of a r= emote-endpoint property") > > Signed-off-by: Saravana Kannan > > --- > > Using Link: instead of Closes: because Luca reported two separate issue= s. > > > > Sorry about introducing a stupid bug in an -rcX Rob. > > > > -Saravana > > Hi there, > > Could this be reverted? It breaks my audio-graph-card2 setup: > > [ 17.116290] platform 2034000.i2s: deferred probe pending: platform: wa= it for supplier /sound/multi > [ 17.125370] platform test_codec: deferred probe pending: platform: wai= t for supplier /sound/multi > [ 17.134257] platform sound: deferred probe pending: asoc-audio-graph-c= ard2: parse error Hmmm.... cycle detection should work here and not enforce probe ordering. I'd appreciate help with debugging that. Let me look at it on Monday. Can you enabled all the debug logs in drivers/base/core.c and tell me what cycle detection is telling about these nodes? But the better fix would be to use the new "post-init-providers" property. See below. > > / { > ... > > > test_codec { > compatible =3D "test-codec"; > prefix =3D "Test codec"; > #sound-dai-cells =3D <0>; post-init-provider =3D <&multi>; Right now there's a cyclic dependency between test_codec and multi and this tells the kernel that test codec needs to probe first. Similar additions to the other nodes blocked on multi. Thanks, Saravana > port { > test_ep: endpoint { > remote-endpoint =3D <&card_ep_2>; > }; > }; > }; > > sound { > compatible =3D "audio-graph-card2"; > label =3D "CS5368"; > links =3D <&i2s2_port>; > multi { > #address-cells =3D <1>; > #size-cells =3D <0>; > convert-channels =3D <16>; > port@0 { > reg =3D <0>; > card_ep_0: endpoint { > remote-endpoint =3D <&i2s2_ep>; > }; > }; > //port@1 { > // reg =3D <1>; > // card_ep_1: endpoint { > // remote-endpoint =3D <&cs5368_ep>; > // }; > //}; > port@1 { > reg =3D <1>; > card_ep_2: endpoint { > remote-endpoint =3D <&test_ep>; > }; > }; > }; > }; > }; > > > &i2s2 { > pinctrl-0 =3D <&i2s2_pins>, <&i2s2_din_pins>; > pinctrl-names =3D "default"; > status =3D "okay"; > i2s2_port: port { > i2s2_ep: endpoint { > format =3D "dsp_a"; > bitclock-master; > frame-master; > remote-endpoint =3D <&card_ep_0>; > }; > }; > }; > > John.