drm/vc4: hdmi: Split the interrupt handlers
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jan 2021 14:23:03 +0000 (15:23 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 28 Jan 2021 09:28:58 +0000 (10:28 +0100)
commit0c38490a031071c0d81b400949f43ea6f4b0cd8f
tree987ab28437a4294b92d5962dbc220a790481436f
parentcd7f016c93b697dea79a884162cbf7311283fe12
drm/vc4: hdmi: Split the interrupt handlers

The BCM2711 has two different interrupt sources to transmit and receive
CEC messages, provided through an external interrupt chip shared between
the two HDMI interrupt controllers.

The rest of the CEC controller is identical though so we need to change
a bit the code organisation to share the code as much as possible, yet
still allowing to register independent handlers.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Tested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Link: https://patchwork.freedesktop.org/patch/msgid/20210111142309.193441-10-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c