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)
commite2f9b2edf7b5554cfe013d621e295e9b853d545a
tree8f343d2cc8ea173ae3b82ea38f31e46ce25eee0c
parent47b1adc1d2a3b39233a56e183296b335222c9a6d
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