Skip to content

Commit e44e847

Browse files
gugulotmichalsimek
authored andcommitted
drm: xlnx: hdmi: Skip s_axis_video_aclk in native mode configuration
Trying to enable s_axis_video_aclk in Native modes causes driver to crash / hang as this clock is only relevant to AXI Stream mode. So don't enable it by dropping it in Native modes. Signed-off-by: Rajesh Gugulothu <rajesh.gugulothu@amd.com> Reviewed-by: Vishal Sagar <vishal.sagar@amd.com> Message-ID: <1750160673-400641-3-git-send-email-rajesh.gugulothu@amd.com>
1 parent fb35d8e commit e44e847

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

‎drivers/gpu/drm/xlnx/xlnx_hdmi.c‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3938,6 +3938,8 @@ static int xlnx_hdmi_probe(struct platform_device *pdev)
39383938
return -EPROBE_DEFER;
39393939
}
39403940
}
3941+
if (hdmi->config.vid_interface)
3942+
num_clks--;
39413943

39423944
ret = clk_bulk_get(&pdev->dev, num_clks, hdmitx_clks);
39433945
if (ret)
@@ -3973,8 +3975,10 @@ static int xlnx_hdmi_probe(struct platform_device *pdev)
39733975
clk_get_rate(hdmitx_clks[VIDEO_CLK].clk));
39743976
dev_dbg(hdmi->dev, "frl clk = %lu Hz\n",
39753977
clk_get_rate(hdmitx_clks[FRL_CLK].clk));
3976-
dev_dbg(hdmi->dev, "video aclk rate = %lu Hz\n",
3977-
clk_get_rate(hdmitx_clks[S_AXIS_VIDEO_ACLK].clk));
3978+
3979+
if (!hdmi->config.vid_interface)
3980+
dev_dbg(hdmi->dev, "video aclk rate = %lu Hz\n",
3981+
clk_get_rate(hdmitx_clks[S_AXIS_VIDEO_ACLK].clk));
39783982

39793983
hdmi->irq = platform_get_irq(pdev, 0);
39803984
if (hdmi->irq < 0) {
@@ -4045,6 +4049,9 @@ static void xlnx_hdmi_remove(struct platform_device *pdev)
40454049
struct xlnx_hdmi *hdmi = platform_get_drvdata(pdev);
40464050
int num_clks = ARRAY_SIZE(hdmitx_clks);
40474051

4052+
if (hdmi->config.vid_interface)
4053+
num_clks--;
4054+
40484055
if (hdmi->bridge)
40494056
xlnx_bridge_disable(hdmi->bridge);
40504057

0 commit comments

Comments
 (0)