Skip to content

Commit d3f027e

Browse files
Marc Zyngiergregkh
authored andcommitted
drm/meson: dw-hdmi: Ensure that clocks are enabled before touching the TOP registers
[ Upstream commit b33340e ] Removing the meson-dw-hdmi module and re-inserting it results in a hang as the driver writes to HDMITX_TOP_SW_RESET. Similar effects can be seen when booting with mainline u-boot and using the u-boot provided DT (which is highly desirable). The reason for the hang seem to be that the clocks are not always enabled by the time we enter meson_dw_hdmi_init(). Moving this call *after* dw_hdmi_probe() ensures that the clocks are enabled. Fixes: 1374b83 ("drm/meson: dw_hdmi: add resume/suspend hooks") Signed-off-by: Marc Zyngier <maz@kernel.org> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201116200744.495826-5-maz@kernel.org Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2ce569f commit d3f027e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/gpu/drm/meson/meson_dw_hdmi.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,6 @@ static int meson_dw_hdmi_bind(struct device *dev, struct device *master,
10731073

10741074
DRM_DEBUG_DRIVER("encoder initialized\n");
10751075

1076-
meson_dw_hdmi_init(meson_dw_hdmi);
1077-
10781076
/* Bridge / Connector */
10791077

10801078
dw_plat_data->priv_data = meson_dw_hdmi;
@@ -1097,6 +1095,8 @@ static int meson_dw_hdmi_bind(struct device *dev, struct device *master,
10971095
if (IS_ERR(meson_dw_hdmi->hdmi))
10981096
return PTR_ERR(meson_dw_hdmi->hdmi);
10991097

1098+
meson_dw_hdmi_init(meson_dw_hdmi);
1099+
11001100
next_bridge = of_drm_find_bridge(pdev->dev.of_node);
11011101
if (next_bridge)
11021102
drm_bridge_attach(encoder, next_bridge,

0 commit comments

Comments
 (0)