From 131c0f8604c9ebdb02e32369ebd143ddc692f728 Mon Sep 17 00:00:00 2001 From: Soutrik Mukhopadhyay Date: Tue, 14 Mar 2023 15:51:22 +0530 Subject: [PATCH] disp: msm: dp: release vcpi slots for a modeset change for crtc state In MST atomic check function, allow to release vcpi slots for any case of changes in modes, active state or connectors for a crtc state. This reverts the commmit id 28cde80bd3666b6b339a21cac3d04b3b11c318b6. Change-Id: Ice13790f2e652b336619e1d78b42ddb708b4cb2e Signed-off-by: Soutrik Mukhopadhyay --- msm/dp/dp_mst_drm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/msm/dp/dp_mst_drm.c b/msm/dp/dp_mst_drm.c index 155008db..50c49abd 100644 --- a/msm/dp/dp_mst_drm.c +++ b/msm/dp/dp_mst_drm.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. */ @@ -1204,8 +1204,8 @@ static int dp_mst_connector_atomic_check(struct drm_connector *connector, bridge->num_slots); } - /* do not attempt to release vcpi slots if crtc state is enable */ - if (drm_atomic_crtc_needs_modeset(crtc_state) && !crtc_state->enable) { + /*attempt to release vcpi slots on a modeset change for crtc state*/ + if (drm_atomic_crtc_needs_modeset(crtc_state)) { if (WARN_ON(!old_conn_state->best_encoder)) { rc = -EINVAL; goto end;