]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Don't poll for the infoframes status on setup
authorMaxime Ripard <maxime@cerno.tech>
Thu, 3 Dec 2020 07:46:24 +0000 (08:46 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 7 Dec 2020 09:30:47 +0000 (10:30 +0100)
commit913262ee69e04df71012bd2165824ead3253eff1
tree8f343d2cc8ea173ae3b82ea38f31e46ce25eee0c
parentec23b4d7c60ae4ae5bc8e27b0b6402b5110fcab9
drm/vc4: hdmi: Don't poll for the infoframes status on setup

The infoframes are sent at a regular interval as a data island packet,
so we don't need to wait for them to be sent when we're setting them up.

However, we do need to poll when we're enabling since the we can't
update the packet RAM until it has been sent.

Let's add a boolean flag to tell whether we want to poll or not to
support both cases.

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