Skip to content
Commit 1c6d87da authored by Maxime Ripard's avatar Maxime Ripard Committed by Dom Cobley
Browse files

drm/vc4: hvs: Test if the EOF interrupts are enabled



We currently enable the EOF interrupts through the CRTC destroy_state
implementation.

However, nothing guarantees that we can't call destroy_state multiple
times in a row, and therefore before the EOF interrupt even happens.

This means we would enable the interrupt multiple times but disable it
only once. It wasn't an issue so far since the interrupts were only
enabled by setting a bit in a register, but with BCM2712 we will use an
external interrupt controller, with a refcounted interrupt.

Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
parent a00ec377
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment