Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/msm/dp: Remove error message when downstream port not connected

Plugging in an Apple dongle without the HDMI cable attached prints out
an error message in the kernel logs when nothing is actually wrong.

no downstream ports connected

This is because the downstream port for the HDMI connector is not
connected, so the Apple dongle reports that as a zero sink count device.

Cc: Vinod Polimera <quic_vpolimer@quicinc.com>
Cc: Kuogee Hsieh <quic_khsieh@quicinc.com>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/556068/
Link: https://lore.kernel.org/r/20230906181226.2198441-3-swboyd@chromium.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

authored by

Stephen Boyd and committed by
Dmitry Baryshkov
6398e4d4 cc2e4923

-1
-1
drivers/gpu/drm/msm/dp/dp_panel.c
··· 156 156 if (drm_dp_is_branch(dp_panel->dpcd)) { 157 157 count = drm_dp_read_sink_count(panel->aux); 158 158 if (!count) { 159 - DRM_ERROR("no downstream ports connected\n"); 160 159 panel->link->sink_count = 0; 161 160 return -ENOTCONN; 162 161 }