drm/vc4: crtc: Move the BO Handling out of Common Page-Flip Handler
authorMaxime Ripard <maxime@cerno.tech>
Fri, 10 Jun 2022 11:51:46 +0000 (13:51 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 16 Jun 2022 09:07:52 +0000 (11:07 +0200)
commitf6766fb265b18248d2c4bc643eb99e853f293dd6
tree57c3f99007295169e223979c9252ea897f522a0d
parent4d12c36fb73b5c49fe2f95d06515fd9846010fd2
drm/vc4: crtc: Move the BO Handling out of Common Page-Flip Handler

The function vc4_async_page_flip() handles asynchronous page-flips in
the vc4 driver.

However, it mixes some generic code with code that should only be run on
older generations that have the GPU handled by the vc4 driver.

Let's split the generic part out of vc4_async_page_flip() and into a
common function that we be reusable by an handler made for the BCM2711.

Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220610115149.964394-12-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c