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 D0C25C636D4 for ; Fri, 3 Feb 2023 04:07:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232124AbjBCEHI (ORCPT ); Thu, 2 Feb 2023 23:07:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbjBCEHD (ORCPT ); Thu, 2 Feb 2023 23:07:03 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67E3084F9E for ; Thu, 2 Feb 2023 20:07:01 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id x29so4129323ljq.0 for ; Thu, 02 Feb 2023 20:07:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=EdXrl6jFXUFLX/Fs8Y8vVeX1SCyz5eISp65do85FsLM=; b=giRO/0Lr8QjY/NuoJqnrqZWr0LmwzOD3jmpWfjm5JbisDUMhfSppPvF2poel/JwAng z4I+JYUG7niuOyibxKh4v/3DLvyOThvU/qNORVgp+KVuoz54UqGmtwi7Phws3zAMdMLT 2wtKpfMfkLkWzEntG6phV1GBOsNd1jIgusi5Q9a4MXoBpD5I/ivxHpW0RFF0tZBcadWU 5yAfyHKkkwfKmtyGy3xvsOivT7CzvDAxKI6UujeqXBQNYK4w5nf92OBQGRxUwJuQW47o vuQb8gkyWXKJ9ThQKaYAH2nv/31pRGdD1fz3VyK0Py5zaedLNB6D0HYgVCkxL2LMTXat FYxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=EdXrl6jFXUFLX/Fs8Y8vVeX1SCyz5eISp65do85FsLM=; b=LjubjaUkd/fYDt8sgcF+oGLRz8+T4AtQlQGsMG0Z6lHbNbbHm8cpfvL3uyCKZOYZKj 4C3y4frdHhjtEXqnd+kir1hldUUbrYS62vp+djBA+CUCWaZhBeFed3Js8jiKes0XU3z3 HztvKSJs2fxHTMifBUPr7ET8kb2NpLi3oGrRviQNT1NEUf2sl73IaYh0oh4GT97iUXiM innKke1Dind12JDc3aW5PssOKO92H4qNKpFPskfzEe1prBvpajWW7HI2CjQBvZlSSCVU vkQmIzyqB7yl8r3D/CH53tTewu56WjoOGIostgmdDB3Ieg2Y6oz2iS4j2fiPJM8R02+O cEoQ== X-Gm-Message-State: AO0yUKXnc9tYgOw+BsjuzgkVlUZymVoYGyJ0RKM/AUJmVx9xps52MVMM bBHJCDeSdYt6evXhfGeSPnEky5sRcjsQcs7ZaNRvlA== X-Google-Smtp-Source: AK7set8ePtCHM1Iq3qNLDJDujeHBggdkNrTSmEo6kURlW1fNmHwpxqtfcCcjPvkRToDgjzFMlniM4/dhmf794eZbSl0= X-Received: by 2002:a2e:a4c3:0:b0:28e:92b2:a04a with SMTP id p3-20020a2ea4c3000000b0028e92b2a04amr1366705ljm.34.1675397219676; Thu, 02 Feb 2023 20:06:59 -0800 (PST) MIME-Version: 1.0 References: <20230201101559.15529-1-johan+linaro@kernel.org> <20230201101559.15529-9-johan+linaro@kernel.org> In-Reply-To: <20230201101559.15529-9-johan+linaro@kernel.org> From: Jun Nie Date: Fri, 3 Feb 2023 12:06:57 +0800 Message-ID: Subject: Re: [PATCH 08/23] interconnect: qcom: rpm: fix registration race 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 , =?UTF-8?B?QXJ0dXIgxZp3aWdvxYQ=?= , 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, Georgi Djakov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Johan Hovold =E4=BA=8E2023=E5=B9=B42=E6=9C=881=E6= =97=A5=E5=91=A8=E4=B8=89 18:16=E5=86=99=E9=81=93=EF=BC=9A > > The current interconnect provider registration interface is inherently > racy as nodes are not added until the after adding the provider. This > can specifically cause racing DT lookups to fail. > > Switch to using the new API where the provider is not registered until > after it has been fully initialised. > > Fixes: 62feb14ee8a3 ("interconnect: qcom: Consolidate interconnect RPM su= pport") > Fixes: 30c8fa3ec61a ("interconnect: qcom: Add MSM8916 interconnect provid= er driver") > Cc: stable@vger.kernel.org # 5.7 > Cc: Jun Nie > Cc: Georgi Djakov > Signed-off-by: Johan Hovold > --- > drivers/interconnect/qcom/icc-rpm.c | 23 ++++++++++++----------- > 1 file changed, 12 insertions(+), 11 deletions(-) > Reviewed-by: Jun Nie