On Mon, Oct 19, 2026 at 10:44:41AM +0530, Vivek Kumar wrote: > Some eDP sinks, especially fixed-format eDP-to-HDMI bridge chips with > no downstream AUX-capable panel behind them, do not report a non-zero > DP_SINK_COUNT even though they participate normally in DPCD capability > exchange and link training. > > Treating sink_count == 0 as a permanent disconnect is valid for external > DisplayPort, but it breaks eDP probe/enable paths in > msm_dp_display_prepare_link(). > > Use drm_dp_read_sink_count_cap() in msm_dp_link_parse_sink_status_field() > and set link->sink_count to 1 when the capability is not available. > > In dp_panel.c, msm_dp_panel_read_link_caps() still reads DP_SINK_COUNT > for branch devices. That read is left unchanged here: the sink on the > tested board reports DPCD 1.4 and does not advertise a downstream port, > so that path is not taken. > > Signed-off-by: Vivek Kumar <[email protected]> > Assisted-by : LLM > --- > drivers/gpu/drm/msm/dp/dp_display.c | 6 ++++-- > drivers/gpu/drm/msm/dp/dp_link.c | 30 +++++++++++++++++++++-------- > drivers/gpu/drm/msm/dp/dp_link.h | 5 ++++- > drivers/gpu/drm/msm/dp/dp_panel.c | 5 +++++ > drivers/gpu/drm/msm/dp/dp_panel.h | 1 + > 5 files changed, 36 insertions(+), 11 deletions(-)
Vivek please check the issues that Sashiko pointed out. -- With best wishes Dmitry
