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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 37F2FCCF9E9 for ; Wed, 29 Oct 2025 08:54:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 99A3E10E76F; Wed, 29 Oct 2025 08:54:56 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="WEV4PnwV"; dkim-atps=neutral Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id C8D9910E76F for ; Wed, 29 Oct 2025 08:54:55 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 02C5D611E0; Wed, 29 Oct 2025 08:54:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C5F4C4CEF7; Wed, 29 Oct 2025 08:54:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761728094; bh=Dy4WiiEp2hDTLOfWgfOlVvW3TTdWJu7jpfAlJ8GtIl8=; h=Date:From:To:Subject:In-Reply-To:References:Cc:From; b=WEV4PnwVugjI4eYTb5D3Xn5Z4SpWwhIIgtQ6bhBAO5Gg+jfKiUPa6QqTDBVz2RpRk kKbesQHYBsFKN3TodcNKNGbZ5TtT+qvKc/PDikJ6NLVp+eSB4YWfLPu5hei1tBbkVu KsiIYA2AbjSgTgwKdUo46yC63JIcaEfkHZSoDNnQQqyfbRxdjaAHDMBiX8IoUs83ln E/I8fAxI66UjB3g1xEz/e3+S921y55JmfwSU8n2lUjThdw95a/zd0XnjEKJ3PP5o2c Z6TuDl1jusd6p/YiCR9aqvNO3uLyvOcvAsmp/0t7vm9/A8WkM9plbb6odoVrl2bdoI QIcQLK4QqmxXQ== Message-ID: <312c3226cd0581d00b39db8daea69417@kernel.org> Date: Wed, 29 Oct 2025 08:54:51 +0000 From: "Maxime Ripard" To: "Luca Ceresoli" Subject: Re: [PATCH v3 3/7] drm/bridge: drm_bridge_attach: lock the encoder chain mutex during insertion In-Reply-To: <20251009-drm-bridge-alloc-encoder-chain-mutex-v3-3-c90ed744efec@bootlin.com> References: <20251009-drm-bridge-alloc-encoder-chain-mutex-v3-3-c90ed744efec@bootlin.com> Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, "Andrzej Hajda" , "David Airlie" , "Hui Pu" , "Jernej Skrabec" , "Jonas Karlman" , "Laurent Pinchart" , "Maarten Lankhorst" , "Maxime Ripard" , "Neil Armstrong" , "Robert Foss" , "Simona Vetter" , "Thomas Petazzoni" , "Thomas Zimmermann" Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, 9 Oct 2025 13:38:58 +0200, Luca Ceresoli wrote: > drm_bridge_attach() modifies the encoder bridge chain, so take a mutex > around such operations to allow users of the chain to protect themselves > from chain modifications while iterating. > > Signed-off-by: Luca Ceresoli > > [ ... ] Reviewed-by: Maxime Ripard Thanks! Maxime