diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2023-09-04 00:24:32 +0200 |
---|---|---|
committer | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2023-10-09 11:17:47 +0200 |
commit | bfcc3d8f94f4cb7b97cd666367ffc729342d30c0 (patch) | |
tree | ecf787995e9110332323df6f16a52b4dfbc51d3d /drivers/gpu/drm/msm/dp/dp_panel.c | |
parent | drm/msm/dp: Remove error message when downstream port not connected (diff) | |
download | linux-bfcc3d8f94f4cb7b97cd666367ffc729342d30c0.tar.xz linux-bfcc3d8f94f4cb7b97cd666367ffc729342d30c0.zip |
drm/msm/dp: support setting the DP subconnector type
Read the downstream port info and set the subconnector type accordingly.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/555531/
Link: https://lore.kernel.org/r/20230903222432.2894093-1-dmitry.baryshkov@linaro.org
Diffstat (limited to 'drivers/gpu/drm/msm/dp/dp_panel.c')
-rw-r--r-- | drivers/gpu/drm/msm/dp/dp_panel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/dp/dp_panel.c b/drivers/gpu/drm/msm/dp/dp_panel.c index 0871ef42933e..127f6af995cd 100644 --- a/drivers/gpu/drm/msm/dp/dp_panel.c +++ b/drivers/gpu/drm/msm/dp/dp_panel.c @@ -161,6 +161,11 @@ int dp_panel_read_sink_caps(struct dp_panel *dp_panel, } } + rc = drm_dp_read_downstream_info(panel->aux, dp_panel->dpcd, + dp_panel->downstream_ports); + if (rc) + return rc; + kfree(dp_panel->edid); dp_panel->edid = NULL; |