drm/vc4: hdmi: Add a workqueue to set scrambling
authorMaxime Ripard <maxime@cerno.tech>
Fri, 7 May 2021 15:05:14 +0000 (17:05 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 24 May 2021 12:44:04 +0000 (14:44 +0200)
commit257d36d493e94e70cdc941e66f81ad3c30c80008
tree8d12085c8b20259436a82d0c387e3d46cf7cde65
parentc85695a2016e2ed0f3641f9f5917642e7d3c3721
drm/vc4: hdmi: Add a workqueue to set scrambling

It looks like some displays (like the LG 27UL850-W) don't enable the
scrambling when the HDMI driver enables it. However, if we set later the
scrambler enable bit, the display will work as expected.

Let's create delayed work queue to periodically look at the display
scrambling status, and if it's not set yet try to enable it again.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210507150515.257424-12-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h