drm: bridge: dw_hdmi: only trigger hotplug event on link change
authorLucas Stach <l.stach@pengutronix.de>
Fri, 26 Aug 2022 18:57:33 +0000 (20:57 +0200)
committerRobert Foss <robert.foss@linaro.org>
Mon, 29 Aug 2022 15:42:09 +0000 (17:42 +0200)
commitda09daf881082266e4075657fac53c7966de8e4d
tree32a3044a3ddfd972f9398a2981fbecacac82c8d4
parent81dae1f34d56b5a25659d03ffe63be69aca87352
drm: bridge: dw_hdmi: only trigger hotplug event on link change

There are two events that signal a real change of the link state: HPD going
high means the sink is newly connected or wants the source to re-read the
EDID, RX sense going low is a indication that the link has been disconnected.

Ignore the other two events that also trigger interrupts, but don't need
immediate attention: HPD going low does not necessarily mean the link has
been lost and should not trigger a immediate read of the status. RX sense
going high also does not require a detect cycle, as HPD going high is the
right point in time to read the EDID.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> (v1)
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220826185733.3213248-1-l.stach@pengutronix.de
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c