]> git.dujemihanovic.xyz Git - linux.git/commit
drm/meson: dw-hdmi: power up phy on device init
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 26 Apr 2024 16:02:53 +0000 (18:02 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Fri, 3 May 2024 08:48:53 +0000 (10:48 +0200)
commit04703bfd7f99c016a823c74712b97f8b5590ce87
tree810baa7bdb42ae9b73e3e9369e118e725c7685c9
parentda85f0aaa9f21999753b01d45c0343f885a8f905
drm/meson: dw-hdmi: power up phy on device init

The phy is not in a useful state right after init. It will become useful,
including for auxiliary function such as CEC or ARC, after the first mode
is set. This is a problem on systems where the display is using another
interface like DSI or CVBS.

This change refactor the init and mode change callback to power up the PHY
on init and leave only what is necessary for mode changes in the related
function. This is enough to fix CEC operation when HDMI display is not
enabled.

Fixes: 3f68be7d8e96 ("drm/meson: Add support for HDMI encoder and DW-HDMI bridge + PHY")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240426160256.3089978-2-jbrunet@baylibre.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240426160256.3089978-2-jbrunet@baylibre.com
drivers/gpu/drm/meson/meson_dw_hdmi.c