Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E076DC678DB for ; Tue, 7 Mar 2023 09:43:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229811AbjCGJna (ORCPT ); Tue, 7 Mar 2023 04:43:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229818AbjCGJnZ (ORCPT ); Tue, 7 Mar 2023 04:43:25 -0500 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A22A725963; Tue, 7 Mar 2023 01:43:22 -0800 (PST) Received: from booty (unknown [77.244.183.192]) (Authenticated sender: luca.ceresoli@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 32C2B240004; Tue, 7 Mar 2023 09:43:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1678182200; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VMXF5RO797AntyK5sFhI5pkd/DTeetnKf/c/TJqL6/c=; b=GWpZU9zWyN/iCJJ1cfS24PN+Ci74T5kOXtq4AIkYR5gEfIB4PP2mhB4qRVE5fqYR6zj274 oNA7/NYzdOsNuv3P0R1wxmc8ypQnIcClrvAaepx8kceDXZgMDv4xIQtSnwljVfAAggmkHK SyYf7gGzZEs0emflJ4A6tMfnfp2v3Ukfxa/6FQ6ij7Zf3KT96Liob/E1ekDBe0uoXnoOf4 oFv7/a+W1XRcYsLoFHs0TB7JhHcNAzNqgvlrAhYComjyPvfxsxvt3ms2qE5bxaBAo3jqlB MH3JyEPpkyJ0QMp0/sOty/gotftm0STXCR71TLaCyF5ojlrua3Eeev90VGBgyQ== Date: Tue, 7 Mar 2023 10:43:15 +0100 From: Luca Ceresoli To: Johan Hovold Cc: Georgi Djakov , "Shawn Guo" , "Sascha Hauer" , "Pengutronix Kernel Team" , "Fabio Estevam" , "NXP Linux Team" , "Andy Gross" , "Bjorn Andersson" , "Konrad Dybcio" , "Sylwester Nawrocki" , Artur =?UTF-8?Q?=C5=9Awigo=C5=84?= , "Krzysztof Kozlowski" , "Alim Akhtar" , "Thierry Reding" , "Jonathan Hunter" , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2 03/23] interconnect: fix provider registration API Message-ID: <20230307104315.14ff7e4d@booty> In-Reply-To: <20230306075651.2449-4-johan+linaro@kernel.org> References: <20230306075651.2449-1-johan+linaro@kernel.org> <20230306075651.2449-4-johan+linaro@kernel.org> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 6 Mar 2023 08:56:31 +0100 Johan Hovold wrote: > The current interconnect provider interface is inherently racy as > providers are expected to be added before being fully initialised. > > Specifically, nodes are currently not added and the provider data is not > initialised until after registering the provider which can cause racing > DT lookups to fail. > > Add a new provider API which will be used to fix up the interconnect > drivers. > > The old API is reimplemented using the new interface and will be removed > once all drivers have been fixed. > > Fixes: 11f1ceca7031 ("interconnect: Add generic on-chip interconnect API") > Fixes: 87e3031b6fbd ("interconnect: Allow endpoints translation via DT") > Cc: stable@vger.kernel.org # 5.1 > Reviewed-by: Konrad Dybcio > Signed-off-by: Johan Hovold [Tested on i.MX8MP using an MSC SM2-MB-EP1 Board] Tested-by: Luca Ceresoli -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com