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 8C6D8D29C33 for ; Mon, 19 Jan 2026 15:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SKu2RYo4NMilEZHKNCMxD9YSnkMe6NClMX+u8an34TQ=; b=QfYG9lsAFP8lP42q+XFwe6Hu9z bzugN7hZrGAkOdTTIZNTk3G8aUI+8P4t3aib2pQAckm2uQNoMi/rUCHnlcjVCg8b8Ym6x/5O+Lw7c OovZjjHoQMJ4hxQrNgOYR//52QGZjwKWkjz/AbdzP9jD/CwDJ0AMGE035s8ndbHcuENdvL+qm/gH3 ly/57+5KbFJdfZMpWILQX9rsMotO+7QoXa+sKjb7gqyAnxyqXA+pks7lmgkkjiy6N0RkINQqFj0LE el1wE2FcOCKr19WMoOFlXQKRQUP795IGwD2cGU8Kd/TJXOQlHMcB3otjaGBBHmNsnm5RP0/R48MCx jGDaHFfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vhrRi-00000002Njf-3exD; Mon, 19 Jan 2026 15:45:38 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vhrRP-00000002Ni0-2TLm for linux-arm-kernel@lists.infradead.org; Mon, 19 Jan 2026 15:45:37 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 34EB2497; Mon, 19 Jan 2026 07:45:10 -0800 (PST) Received: from pluto (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 936F23F694; Mon, 19 Jan 2026 07:45:14 -0800 (PST) Date: Mon, 19 Jan 2026 15:45:12 +0000 From: Cristian Marussi To: Jonathan Cameron Cc: Cristian Marussi , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, arm-scmi@vger.kernel.org, linux-fsdevel@vger.kernel.org, sudeep.holla@arm.com, james.quinlan@broadcom.com, f.fainelli@gmail.com, vincent.guittot@linaro.org, etienne.carriere@st.com, peng.fan@oss.nxp.com, michal.simek@amd.com, dan.carpenter@linaro.org, d-gole@ti.com, elif.topuz@arm.com, lukasz.luba@arm.com, philip.radford@arm.com, souvik.chakravarty@arm.com Subject: Re: [PATCH v2 02/17] firmware: arm_scmi: Reduce the scope of protocols mutex Message-ID: References: <20260114114638.2290765-1-cristian.marussi@arm.com> <20260114114638.2290765-3-cristian.marussi@arm.com> <20260119112154.0000029d@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260119112154.0000029d@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260119_074530_720024_B1078E8D X-CRM114-Status: GOOD ( 14.74 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jan 19, 2026 at 11:21:54AM +0000, Jonathan Cameron wrote: > On Wed, 14 Jan 2026 11:46:06 +0000 > Cristian Marussi wrote: > > > Currently the mutex dedicated to the protection of the list of registered > > protocols is held during all the protocol initialization phase. Hi Jonathan, > > > > Such a wide locking region is not needed and causes problem when trying to > > initialize notifications from within a protocol initialization routine. > > > > Reduce the scope of the protocol mutex. > > > > Signed-off-by: Cristian Marussi > I haven't checked carefully that the new scope is appropriate but > as a change in of itself, the code is correct and clean. > With that in mind. I will double check after more testing. > Reviewed-by: Jonathan Cameron > Thanks for having a look. Cristian