From nobody Wed Feb 5 16:52:33 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AED0A1DB55C for ; Wed, 15 Jan 2025 21:05:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736975150; cv=none; b=YIfx0I060eT+B/5ojoOAEFy4RPN327d1rtPoOO5yHekFBwnSqVfOKEFrItYf1RezSbgenG5M+i3x0F4/HTJh/nN1AJv4wRXkKF2i1F71hdfQy8/gvNsrxyA5NvQckd2DHXyxavInODp+ZnlKS6udoT6iaZT/vxuQNrh3IZx6Moo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736975150; c=relaxed/simple; bh=LYEhfKiFb3CUu2Y0XG8MQHtGxB63YAoqR4SNayCeLEw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KHzVEjO9cBjETiU0qVHsIndF6/tQ6Cxjgg3/gVg2sud8kE3B83H9c0Yg7oOwl4f+tJKB3BcGxdS3u6AdvNlwQXKDFfsJCuKHwtgfXJG05dOl5l9SlMSdvtcUug9fc423D3urUmNjnisz2kPfvPUgF4RHTbcsqNKbGWXgYTSMrv0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HuyL8X67; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HuyL8X67" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E28C1C4CED1; Wed, 15 Jan 2025 21:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736975150; bh=LYEhfKiFb3CUu2Y0XG8MQHtGxB63YAoqR4SNayCeLEw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HuyL8X67lHaMg3QzkZ+S2IcqG5bq7H6ZKlVTLrZ2pDfegot/+DeezP7oNXPiiEmXv AQwYJtEALWWaNZ/Z7ne2Cto5rZP6o8GZsiHzA61EqMALYOiPKZMWyqV7ApkQS/SD6k jIk/Z/NaGNwZj/SHUkH0zkMkLy0Jaub6X9y6GZ/EUzCGiaAxyx5JOfzRrWCOXXxNlG a1+MlkwpADg0lcX+5ZaWxbP+GlS+SrYboqT31cmeoLPvQygua3My9aL6pRn9ag/Ef3 ejTfCpQ5/5zNErda0dbwLMrRnpm+AcHS8ODyuzDWT/K4eo7jsVw6r9SUNdVUe3W8wX zC/z6jrT77atA== From: Maxime Ripard Date: Wed, 15 Jan 2025 22:05:10 +0100 Subject: [PATCH 03/29] drm/atomic-helper: Change parameter name of drm_atomic_helper_commit_tail() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250115-bridge-connector-v1-3-9a2fecd886a6@kernel.org> References: <20250115-bridge-connector-v1-0-9a2fecd886a6@kernel.org> In-Reply-To: <20250115-bridge-connector-v1-0-9a2fecd886a6@kernel.org> To: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Douglas Anderson Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Maxime Ripard X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2624; i=mripard@kernel.org; h=from:subject:message-id; bh=LYEhfKiFb3CUu2Y0XG8MQHtGxB63YAoqR4SNayCeLEw=; b=owGbwMvMwCmsHn9OcpHtvjLG02pJDOkdymIq/Z+2dFso7rYXb7iv/MPiT1rNg3QpxWve2nz3j s09J9bVMZWFQZiTQVZMkeWJTNjp5e2LqxzsV/6AmcPKBDKEgYtTACYiN4Ox3mvd4a18fBNvhVnt dwtncuRJCYmWtA2ROfFH+XDmp4J/7zKfWj81+iDC6NbvkDCl42wYY8OzLMlIRuUDkw5vX1q0Psp ++7aoQzbuUjPLl+nwMyWw8lu4SUfwCKct9A/ikuSMC5+pAQA= X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D drm_atomic_helper_commit_tail() is the final part of an atomic commit, and is given a parameter with the drm_atomic_state being committed. However, that parameter name is called (and documented) as old_state, which is pretty confusing. Let's rename that variable as state. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_atomic_helper.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atom= ic_helper.c index 48dc4f18e757549b67940cc5ca4d76812ef13985..c80d2ee0247a5316dd103d6178c= 7fa96eb366c9a 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -1756,38 +1756,38 @@ void drm_atomic_helper_wait_for_flip_done(struct dr= m_device *dev, } EXPORT_SYMBOL(drm_atomic_helper_wait_for_flip_done); =20 /** * drm_atomic_helper_commit_tail - commit atomic update to hardware - * @old_state: atomic state object with old state structures + * @state: atomic state object being committed * * This is the default implementation for the * &drm_mode_config_helper_funcs.atomic_commit_tail hook, for drivers * that do not support runtime_pm or do not need the CRTC to be * enabled to perform a commit. Otherwise, see * drm_atomic_helper_commit_tail_rpm(). * * Note that the default ordering of how the various stages are called is = to * match the legacy modeset helper library closest. */ -void drm_atomic_helper_commit_tail(struct drm_atomic_state *old_state) +void drm_atomic_helper_commit_tail(struct drm_atomic_state *state) { - struct drm_device *dev =3D old_state->dev; + struct drm_device *dev =3D state->dev; =20 - drm_atomic_helper_commit_modeset_disables(dev, old_state); + drm_atomic_helper_commit_modeset_disables(dev, state); =20 - drm_atomic_helper_commit_planes(dev, old_state, 0); + drm_atomic_helper_commit_planes(dev, state, 0); =20 - drm_atomic_helper_commit_modeset_enables(dev, old_state); + drm_atomic_helper_commit_modeset_enables(dev, state); =20 - drm_atomic_helper_fake_vblank(old_state); + drm_atomic_helper_fake_vblank(state); =20 - drm_atomic_helper_commit_hw_done(old_state); + drm_atomic_helper_commit_hw_done(state); =20 - drm_atomic_helper_wait_for_vblanks(dev, old_state); + drm_atomic_helper_wait_for_vblanks(dev, state); =20 - drm_atomic_helper_cleanup_planes(dev, old_state); + drm_atomic_helper_cleanup_planes(dev, state); } EXPORT_SYMBOL(drm_atomic_helper_commit_tail); =20 /** * drm_atomic_helper_commit_tail_rpm - commit atomic update to hardware --=20 2.47.1