Skip to content

Commit 6cf9c3f

Browse files
Marc Zyngiergregkh
authored andcommitted
drm/meson: dw-hdmi: Enable the iahb clock early enough
[ Upstream commit 2b6cb81 ] Instead of moving meson_dw_hdmi_init() around which breaks existing platform, let's enable the clock meson_dw_hdmi_init() depends on. This means we don't have to worry about this clock being enabled or not, depending on the boot-loader features. Fixes: b33340e ("drm/meson: dw-hdmi: Ensure that clocks are enabled before touching the TOP registers") Reported-by: "kernelci.org bot" <bot@kernelci.org> Signed-off-by: Marc Zyngier <maz@kernel.org> Tested-by: Guillaume Tucker <guillaume.tucker@collabora.com> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> [narmstrong: changed reported by to kernelci.org bot] Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201120094205.525228-3-maz@kernel.org Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent d0ef2d7 commit 6cf9c3f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,10 @@ static int meson_dw_hdmi_bind(struct device *dev, struct device *master,
10511051
if (ret)
10521052
return ret;
10531053

1054+
ret = meson_enable_clk(dev, "iahb");
1055+
if (ret)
1056+
return ret;
1057+
10541058
ret = meson_enable_clk(dev, "venci");
10551059
if (ret)
10561060
return ret;
@@ -1086,6 +1090,8 @@ static int meson_dw_hdmi_bind(struct device *dev, struct device *master,
10861090

10871091
encoder->possible_crtcs = BIT(0);
10881092

1093+
meson_dw_hdmi_init(meson_dw_hdmi);
1094+
10891095
DRM_DEBUG_DRIVER("encoder initialized\n");
10901096

10911097
/* Bridge / Connector */
@@ -1110,8 +1116,6 @@ static int meson_dw_hdmi_bind(struct device *dev, struct device *master,
11101116
if (IS_ERR(meson_dw_hdmi->hdmi))
11111117
return PTR_ERR(meson_dw_hdmi->hdmi);
11121118

1113-
meson_dw_hdmi_init(meson_dw_hdmi);
1114-
11151119
next_bridge = of_drm_find_bridge(pdev->dev.of_node);
11161120
if (next_bridge)
11171121
drm_bridge_attach(encoder, next_bridge,

0 commit comments

Comments
 (0)