]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb62c5a254e88692f62d73287ee1ec7558bdc804
tree8d12085c8b20259436a82d0c387e3d46cf7cde65
parent99c1b46846915373e2aac78c3c41fceae19d987e
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