From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 36450C636D3 for ; Thu, 2 Feb 2023 23:14:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VHjCcvTvdPrLAaxrO6KpVBjlTu3+DsQtNdoFjIw9NSs=; b=s8oIai/6vacXEk a5epNuXIh+RRvb8Xwu8qTtvd3RZnPPsFbGvRcn16vOm4rq6nkI6WoV6eJctqz2cEb1K4XnJEd9QSw oRj8pgU0/78LtrbNtMub/UtedOSoWtYLr7RgZMBgpveCkQRmwUwB6TR0rwHkm+DGpRz3iDRKLx42P 5buT30eHBgV1JhwrbU/rHXpqID2E/K2gqRtUDGVvM2cq/oabt2vTNOb4nP7lwsgK8WV+4oD9DW1mB SD4KYWd3XRkmydirpvYv2McQs75fd0a+DE/slOXh+971GCxvd8ksfWb89LMDzzt8/B8jks9fiCOLh +okBmZRhwyr88czsfsdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNim9-00HOMz-Ql; Thu, 02 Feb 2023 23:13:53 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNim7-00HOMb-LD for linux-arm-kernel@lists.infradead.org; Thu, 02 Feb 2023 23:13:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675379629; 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=kXVHvL7Zc9SvpXlyodElHL/El9p9PH7Vp09KDuKNQ7k=; b=Cuto8m/GTif1qbdKin9pJFm4D/PWvd98G6hpppXldkGxSa6ux5b7FhNEiWD0JoHFlOMk7p oD44iiCNXZW5fB7l1qrZkp5sL7GEuYsSXu4gGfFvtkQSzpXZBvXHUotlx3gObU5i6+vSST 6hBwBOBszHrzsHmf1XIgpQMIAc5ICJE= Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-433-xZ02KL9POvi8J3ThqCVQZQ-1; Thu, 02 Feb 2023 18:13:45 -0500 X-MC-Unique: xZ02KL9POvi8J3ThqCVQZQ-1 Received: by mail-io1-f69.google.com with SMTP id x12-20020a5d990c000000b00707d2f838acso2021305iol.21 for ; Thu, 02 Feb 2023 15:13:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kXVHvL7Zc9SvpXlyodElHL/El9p9PH7Vp09KDuKNQ7k=; b=Xa4QocHEoqGlYGVuF6AFeHcqfUd05Xlx7NWjbyz87KGsxpSks+fegRO6zhWnM2KEcZ rC5WrdqreX5RdGeR1r+LYOoox4EC+162bUXYvM2G4OiVtzyN9vcqAG0eMQ+qK/DMqX7d Y8Pyn6HcEsZcqA5Q35G4NJv3dmYK4k3IXaUS9tK52HrBQ38MYHAXM9H6NRdFwQv8oz/y hrCPAcBo65WC4+Vv3oEnXH9uVO/gMh/OiuPXJrd+FNKcgExhMlhAmiRkGvHU//JtzPVW xf6EBQq7Pn+ma+fqukaCJF11ThCLOz7bHCQ+Swc9X2RqK2Yu5C4k5tdtloW0fb+OdjpO MAcA== X-Gm-Message-State: AO0yUKWosMub81YgEd4uX9tVqQB9b0cZQ8E9pxObi5+TBnxOTZ1+eo3i UAzfxX57Os6yKMwTutSwV6NRk/b1nUjhn/vbeCnilOqoynVfTxdeYsi7kYYnMOfTfpENqUcoBRf UB5wpe+kJP4u8JfrBVkCf1UzPrYBnJnIzVLA= X-Received: by 2002:a05:6602:2dc2:b0:707:d9c9:458e with SMTP id l2-20020a0566022dc200b00707d9c9458emr3293869iow.1.1675379625354; Thu, 02 Feb 2023 15:13:45 -0800 (PST) X-Google-Smtp-Source: AK7set8MFntk5bjnEw1nbcEwPglzwxtEbs/VR6tLktByEWuRryxfTh9CCM+W/HuYuBK+h7W/qw1aLw== X-Received: by 2002:a05:6602:2dc2:b0:707:d9c9:458e with SMTP id l2-20020a0566022dc200b00707d9c9458emr3293860iow.1.1675379625133; Thu, 02 Feb 2023 15:13:45 -0800 (PST) Received: from x1 (c-73-214-169-22.hsd1.pa.comcast.net. [73.214.169.22]) by smtp.gmail.com with ESMTPSA id a7-20020a5e8e07000000b007192441e5e6sm274085ion.45.2023.02.02.15.13.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Feb 2023 15:13:44 -0800 (PST) Date: Thu, 2 Feb 2023 18:13:41 -0500 From: Brian Masney 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?B?xZp3aWdvxYQ=?= , 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 11/23] interconnect: qcom: msm8974: fix registration race Message-ID: References: <20230201101559.15529-1-johan+linaro@kernel.org> <20230201101559.15529-12-johan+linaro@kernel.org> MIME-Version: 1.0 In-Reply-To: <20230201101559.15529-12-johan+linaro@kernel.org> User-Agent: Mutt/2.2.7 (2022-08-07) X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230202_151351_805905_E73BFFA5 X-CRM114-Status: GOOD ( 12.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Feb 01, 2023 at 11:15:47AM +0100, Johan Hovold wrote: > 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: 4e60a9568dc6 ("interconnect: qcom: add msm8974 driver") > Cc: stable@vger.kernel.org # 5.5 > Cc: Brian Masney > Signed-off-by: Johan Hovold Reviewed-by: Brian Masney _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel