drm/vc4: crtc: Move the BO handling out of common page-flip callback
authorMaxime Ripard <maxime@cerno.tech>
Fri, 10 Jun 2022 11:51:45 +0000 (13:51 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 16 Jun 2022 09:07:52 +0000 (11:07 +0200)
commit4d12c36fb73b5c49fe2f95d06515fd9846010fd2
tree4ad6c3210ff4fd42ad5afb4c85bf559a2c1169aa
parent2523e9dcc3be91bf9fdc0d1e542557ca00bbef42
drm/vc4: crtc: Move the BO handling out of common page-flip callback

We'll soon introduce another completion callback source that won't need
to use the BO reference counting, so let's move it around to create a
function we will be able to share between both callbacks.

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