From patchwork Sat Jul 17 12:40:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 479235 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp2346543jao; Sat, 17 Jul 2021 05:40:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZkwpjbgknRnVMETNsbR1XGao+rCNKC30c5ILOzl/5c3yF7UAYnvtitksNCQXUudqS9Bny X-Received: by 2002:a6b:f707:: with SMTP id k7mr11292102iog.125.1626525628676; Sat, 17 Jul 2021 05:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626525628; cv=none; d=google.com; s=arc-20160816; b=Rhsd7N4Ac+4YY8VqO0eyrwVHIvaJNYmjNbWb77VW27qSOq49Ziwj0qqxm0Bnt4g+3s qsbXKDIW+X/YYOmd94i1cEs5ZmB/gECKkRM4a8+i0QY7hFTZTiOVQlPl5V+Z7k+wRLKZ tOeAlqnMYnegt63BGUrZc3ME2QhJmxLoq6m7kfK8uH23wPbv1i9As/jsSiEoK9ZaSY2E UXsaIYZIxT1q9Z5a/KvJABaLMoN1d/b3ZR4P4XTY93dU4r/2IQbDbL+S8ubvVoacs7A0 yo0AMmGYfl933L0oEH0kX0P/qNIEiJHpk6l0AYkY9Smrwhdf/fEiX5ZGEwdtNpNzcZZx 1LYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TR8ndGweFJ1zlT+mXoJoL5P2xKgyplXAag8kXZdug0c=; b=cNm9qKAimKqxbwzVdScRVK2J7eCPJyNEYcFDFMVeu1QXTkWnNEtpzLjSiuE3g7J4kQ 73xs34qz41WpCwjd0EWC8/9i4d33F7XATVKWhLsq+l2nqYryrZAPMRc7cMHqrzfmq8tr 6E3u1j/AJVZnyqpl+lE/NhfutJ8AorMvKaOLN1Z5dYBcws8TqcQUuVh5ZqS5VR7DJ2u0 WIE4+37SXYUyK4SvG4jaoz31jEAQb+SIUKopNR8a4HOnuQT/V8uMtqbHszjvguawmlx0 DFpxd3sxuNa0MkBwIIIOipTaWNZ9IGi7aVe6Uy9vj/ujRNxiz6OMi3rtKbyN65G1qMTU jG1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Th4ffsnH; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v19si3403533jat.76.2021.07.17.05.40.28; Sat, 17 Jul 2021 05:40:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Th4ffsnH; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233568AbhGQMnY (ORCPT + 17 others); Sat, 17 Jul 2021 08:43:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233613AbhGQMnX (ORCPT ); Sat, 17 Jul 2021 08:43:23 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2D87C061762 for ; Sat, 17 Jul 2021 05:40:26 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id bn5so17584648ljb.10 for ; Sat, 17 Jul 2021 05:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TR8ndGweFJ1zlT+mXoJoL5P2xKgyplXAag8kXZdug0c=; b=Th4ffsnHt9IjURUA+uuC3RwdJGkgKZaPLdGejWNpQAj+cfH3gJa1OMugKmcM2LctC+ Km66oxxeq11JiRTjurNc6Zr0M+fEmixbNqXCGcvflQD4ZTmYXXRfNXsrdSLuOQkMl0/b GaS7cB9xlHJaukbHNuXM0N69E4rj9kDczZ7ygEGYXMJ1HtVsswFJBTB5MOX/0n51e5zN q0Ylr66lP7xwSyVPsk+talf24dz6bQegDlnhkb2BwB/XzbtJOt6tUXIg6smzzWp4fa9O N7hKjLxXMP/yOWojDCIg5xSoMX6c3Wl1uMb72WbpoCQKGrJt58I8u+O60BI34gKxBTcT r0/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TR8ndGweFJ1zlT+mXoJoL5P2xKgyplXAag8kXZdug0c=; b=d1N3D7w5W+ar8OE5q5HcCvxZsvL9f/RM/eRONd7+Ir3FKKSKl4Jbw29X4tIV27GPcg QTfDbGXNxI4iBROBfZ9neN9oihkRBAGbjZwjqxWPr28qtSx/3BnHB7AnL63ExZHXt7MH 0Sh408dcdiqq5hL/uR7qwFGn64vG+5n+Q/O7u8pWV9ZzOnj5jzpDQetwmmkBhaenN9VL K0CpDJIDQsxW9dnGb0ZhWc0tYyB2r5ZOrKfbuyr9/O0pEYrTmGcDRP4sAHTk3LfhRTrp 6l73e53ZeJwk+woMZIQqqAM3a+VMECT68bCfHj1Ok+liEDpPDfED4aHtXkBJFGy58Z0F GmuQ== X-Gm-Message-State: AOAM530bID6cbU0pHDjbP7SssUvm103jzYyz5XsUzmKnJRAhBP1a2eaN eSNTAMrip5cgUDeN61dlJXemAA== X-Received: by 2002:a05:651c:160e:: with SMTP id f14mr4677849ljq.273.1626525625205; Sat, 17 Jul 2021 05:40:25 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id f25sm794264ljo.126.2021.07.17.05.40.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jul 2021 05:40:24 -0700 (PDT) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Cc: Jonathan Marek , Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v4 5/7] drm/msm/dp: stop calling set_encoder_mode callback Date: Sat, 17 Jul 2021 15:40:14 +0300 Message-Id: <20210717124016.316020-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210717124016.316020-1-dmitry.baryshkov@linaro.org> References: <20210717124016.316020-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org None of the display drivers now implement set_encoder_mode callback. Stop calling it from the modeset init code. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 18 ------------------ 1 file changed, 18 deletions(-) -- 2.30.2 Reviewed-by: Bjorn Andersson diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index 051c1be1de7e..70b319a8fe83 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -102,8 +102,6 @@ struct dp_display_private { struct dp_display_mode dp_mode; struct msm_dp dp_display; - bool encoder_mode_set; - /* wait for audio signaling */ struct completion audio_comp; @@ -283,20 +281,6 @@ static void dp_display_send_hpd_event(struct msm_dp *dp_display) } -static void dp_display_set_encoder_mode(struct dp_display_private *dp) -{ - struct msm_drm_private *priv = dp->dp_display.drm_dev->dev_private; - struct msm_kms *kms = priv->kms; - - if (!dp->encoder_mode_set && dp->dp_display.encoder && - kms->funcs->set_encoder_mode) { - kms->funcs->set_encoder_mode(kms, - dp->dp_display.encoder, false); - - dp->encoder_mode_set = true; - } -} - static int dp_display_send_hpd_notification(struct dp_display_private *dp, bool hpd) { @@ -369,8 +353,6 @@ static void dp_display_host_init(struct dp_display_private *dp, int reset) if (dp->usbpd->orientation == ORIENTATION_CC2) flip = true; - dp_display_set_encoder_mode(dp); - dp_power_init(dp->power, flip); dp_ctrl_host_init(dp->ctrl, flip, reset); dp_aux_init(dp->aux);