Re: [PATCH] drm/msm/dp: skip the link teardown after a failed enable

From: Dmitry Baryshkov

Date: Sun Dec 06 2026 - 06:21:04 EST


On Tue, Nov 03, 2026 at 11:20:48PM -0800, Burke Cates wrote:
> Commit 1bda647ce61b ("drm/msm/dp: move link-level teardown from
> display_disable to display_unprepare") moved msm_dp_ctrl_off_link() and
> the PHY exit into msm_dp_display_unprepare(). Unlike
> msm_dp_display_disable(), that function does not check power_on.
>
> When link training fails, msm_dp_ctrl_on_link() has already turned the
> link clocks and the PHY off, and .atomic_enable() returns with power_on
> still false. The next disable now runs msm_dp_ctrl_off_link() anyway,
> which writes REG_DP_MAINLINK_CTRL and pulses DP_SW_RESET with the link
> clocks off. On an ASUS Zenbook A16 (Glymur, eDP) the SoC then resets.
>
> Skip the link teardown when power_on is false, as before that commit,
> but still drop the runtime PM reference.
>
> Tested on the A16 by forcing link training to fail and then blanking
> the display: the SoC reset 2/2 times without this patch and 0/3 with
> it.
>
> Fixes: 1bda647ce61b ("drm/msm/dp: move link-level teardown from display_disable to display_unprepare")
> Signed-off-by: Burke Cates <burke.cates@xxxxxxxxx>
> ---

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>


--
With best wishes
Dmitry