drm/vc4: Move HDMI reset to pm_resume
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 25 Nov 2021 14:46:55 +0000 (14:46 +0000)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Thu, 2 Dec 2021 15:39:15 +0000 (15:39 +0000)
commitb14fe4bc64e5addb8471304916fd15570138b16f
treed70c74b772a168ab2b67a2a5864be034d186fba5
parent7dda14521f1cb9705c9e68434a57dbc8b14b1176
drm/vc4: Move HDMI reset to pm_resume

Pi0-3 have power domains attached to the pm_runtime hooks
for the HDMI block. Initialisation done in the reset called
from bind is therefore lost if all users of the domain are
suspended.
The VEC shares the same lowest level clock/power gating as
the HDMI block, so whilst that is enabled the block is never
actually powered down, but if it isn't enabled then we lose
the state.

Reset and initialise the HDMI block from pm_resume.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi_regs.h