[Freedreno] [PATCH v2 1/2] drm/msm/dp: don't touch DP subconnector property in eDP case
Jessica Zhang
quic_jesszhan at quicinc.com
Wed Nov 1 16:19:19 UTC 2023
On 10/25/2023 2:23 AM, Dmitry Baryshkov wrote:
> From: Abel Vesa <abel.vesa at linaro.org>
>
> In case of the eDP connection there is no subconnetor and as such no
> subconnector property. Put drm_dp_set_subconnector_property() calls
> under the !is_edp condition.
>
> Fixes: bfcc3d8f94f4 ("drm/msm/dp: support setting the DP subconnector type")
> Signed-off-by: Abel Vesa <abel.vesa at linaro.org>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
Tested-by: Jessica Zhang <quic_jesszhan at quicinc.com> # SC7280
> ---
> drivers/gpu/drm/msm/dp/dp_display.c | 15 ++++++++++-----
> 1 file changed, 10 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c
> index e329e03e068d..1b88fb52726f 100644
> --- a/drivers/gpu/drm/msm/dp/dp_display.c
> +++ b/drivers/gpu/drm/msm/dp/dp_display.c
> @@ -365,9 +365,11 @@ static int dp_display_send_hpd_notification(struct dp_display_private *dp,
> /* reset video pattern flag on disconnect */
> if (!hpd) {
> dp->panel->video_test = false;
> - drm_dp_set_subconnector_property(dp->dp_display.connector,
> - connector_status_disconnected,
> - dp->panel->dpcd, dp->panel->downstream_ports);
> + if (!dp->dp_display.is_edp)
> + drm_dp_set_subconnector_property(dp->dp_display.connector,
> + connector_status_disconnected,
> + dp->panel->dpcd,
> + dp->panel->downstream_ports);
> }
>
> dp->dp_display.is_connected = hpd;
> @@ -396,8 +398,11 @@ static int dp_display_process_hpd_high(struct dp_display_private *dp)
>
> dp_link_process_request(dp->link);
>
> - drm_dp_set_subconnector_property(dp->dp_display.connector, connector_status_connected,
> - dp->panel->dpcd, dp->panel->downstream_ports);
> + if (!dp->dp_display.is_edp)
> + drm_dp_set_subconnector_property(dp->dp_display.connector,
> + connector_status_connected,
> + dp->panel->dpcd,
> + dp->panel->downstream_ports);
>
> edid = dp->panel->edid;
>
> --
> 2.42.0
>
More information about the Freedreno
mailing list