drm/atomic-helper: Separate out bridge pre_enable/post_disable from enable/disable
authorAradhya Bhatia <aradhya.bhatia@linux.dev>
Thu, 5 Jun 2025 17:15:22 +0000 (22:45 +0530)
committerMaxime Ripard <mripard@kernel.org>
Fri, 6 Jun 2025 12:24:56 +0000 (14:24 +0200)
commitd5bef6430c85ffa4c92e8723974e012695409a10
treee9d079edf2009e19c1bff7341fc1adfcc6f34a1d
parentf6ee26f5887089bb2ea9032d2d169e5b2cb14e95
drm/atomic-helper: Separate out bridge pre_enable/post_disable from enable/disable

The encoder-bridge ops occur by looping over the new connector states of
the display pipelines. The enable sequence runs as follows -

- pre_enable(bridge),
- enable(encoder),
- enable(bridge),

while the disable sequnce runs as follows -

- disable(bridge),
- disable(encoder),
- post_disable(bridge).

Separate out the pre_enable(bridge), and the post_disable(bridge)
operations into separate functions each.

This patch keeps the sequence same for any singular disaplay pipe, but
changes the sequence across multiple display pipelines.

This patch is meant to be an interim patch, to cleanly pave the way for
the sequence re-ordering patch, and maintain bisectability in the
process.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Jayesh Choudhary <j-choudhary@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Tested-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Signed-off-by: Aradhya Bhatia <aradhya.bhatia@linux.dev>
Tested-by: Devarsh Thakkar <devarsht@ti.com>
Link: https://lore.kernel.org/r/20250605171524.27222-3-aradhya.bhatia@linux.dev
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/drm_atomic_helper.c