]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Simplify the hotplug handling
authorMaxime Ripard <maxime@cerno.tech>
Mon, 29 Aug 2022 13:47:27 +0000 (15:47 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 13 Sep 2022 15:24:57 +0000 (16:24 +0100)
commit862c27d09a1bb9fb25921bf1c48574cad458a3ca
treee0cae975fcfcfa2feae41c354fb5898f5ea51e45
parente086ec4cad7a01a2053c7765cf1395b9b21dd695
drm/vc4: hdmi: Simplify the hotplug handling

Our detect callback has a bunch of operations to perform depending on
the current and last status of the connector, such a setting the CEC
physical address or enabling the scrambling again.

This is currently dealt with a bunch of if / else statetements that make
it fairly difficult to read and extend.

Let's move all that logic to a function of its own.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220829134731.213478-5-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c