diff options
author | Maxime Ripard <maxime@cerno.tech> | 2021-10-25 17:11:11 +0300 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-11-05 14:53:28 +0300 |
commit | a64ff88cb5eb0b9a6855a24ff326e948931e3a8e (patch) | |
tree | 58b1bd490f6af3d3f27424ae759219e32dd199a9 /scripts/gcc-ld | |
parent | 633be8c3c0c5e0cf176ce904083a4728ae8e4025 (diff) | |
download | linux-a64ff88cb5eb0b9a6855a24ff326e948931e3a8e.tar.xz |
drm/vc4: hdmi: Check the device state in prepare()
Even though we already check that the encoder->crtc pointer is there
during in startup(), which is part of the open() path in ASoC, nothing
guarantees that our encoder state won't change between the time when we
open the device and the time we prepare it.
Move the sanity checks we do in startup() to a helper and call it from
prepare().
Link: https://lore.kernel.org/r/20211025141113.702757-8-maxime@cerno.tech
Fixes: 91e99e113929 ("drm/vc4: hdmi: Register HDMI codec")
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'scripts/gcc-ld')
0 files changed, 0 insertions, 0 deletions