From patchwork Fri Jan 7 02:01:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 530464 Delivered-To: patch@linaro.org Received: by 2002:ad5:544f:0:0:0:0:0 with SMTP id a15csp12450imp; Thu, 6 Jan 2022 18:01:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8El4l4KFt92Rq3LgTyUCF6Y945P0ZheFsTS3upGmiYyM5xqyXz1+EmIAuSdSNjmD8eUbe X-Received: by 2002:a17:90a:f316:: with SMTP id ca22mr13254467pjb.171.1641520915237; Thu, 06 Jan 2022 18:01:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641520915; cv=none; d=google.com; s=arc-20160816; b=Sz2Qg4KY5XstPh0NGCOScA1jHWVtkvxV8BJjn0Rsq0URVEQN0vceFvPzksySOJaM9z 3QYweA6RFOGMWKc3CEzFotIg1sT95O4i5VK0MGckbKppjHjGOj+ilH9FI+E89/qhY7BK I+oowqX/WNuTfJpRDcykkjO3AkzofxTw2CB5Qu+9MEUley/NGeZ3IX5vSQrn9JE79IHw dWm0dbsg74CcjPZALxtW+Di4eNPEzLANkGX7czult7m6/P7rNaL4xGkmqtLDwUg81Wfg hMsYRDfZ+RG+GTG7hj7z19FjGMR0YbKErJLoQ4HfWppbUAXwMM82LJ7hNmC0gRJSBd1h c6/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=M8SfnRamYFGQOJ4PWO6EKe5+yLLAmHFD9wjpR/2Zexc=; b=eKGYFgEcNHTwVj25YZJ/WuSFrNLJAppHafd2YbDFgKEu1Z7HyUyyuEQHD0IepD06Y1 s14RIHAukw/CPpEIn6T88xtvKq3qz16fAbbDM9OfizKJjlaZ83ExkaghmUclZmHAGej7 bUonV6+eMYsQcePFhdfJtAQ6Y49EBFapkjKW+75G0j+foHm0P9Sh9cIWhbOWaZ5Pg39m /chamgfCCHsmt8f5OeB4LYhovgU08xyCttA6SjilQF6uGLCnw3P1iZ+gTEW32seuXBDG OWk8luMeMjh7mEfSWSs4Xyk8BQYRamQAYexmKKaUDE2J+v0xdWzo6Hz4/fzsoDcVoHzg Wobg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=AowHc8AE; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id q7si3703074pfs.261.2022.01.06.18.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 18:01:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=AowHc8AE; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1D36310EDBA; Fri, 7 Jan 2022 02:01:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8BEEB10EDBA for ; Fri, 7 Jan 2022 02:01:41 +0000 (UTC) Received: by mail-lf1-x132.google.com with SMTP id r4so10239699lfe.7 for ; Thu, 06 Jan 2022 18:01:41 -0800 (PST) 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=M8SfnRamYFGQOJ4PWO6EKe5+yLLAmHFD9wjpR/2Zexc=; b=AowHc8AE/XeQA4r/BEYswX3hjpxJFdtwVGGIyoIzVVsiaFUmboGVrfax5nWi6ww8yY w9WExs9JYuJdXJtohETe4rfrEWnZI/AL+w6UNNCVMxnZtHzQEZaGRJiLbQX7tKq1tqCq ssk2wPAnCqbRraniOL07B2u3a+o/j1AW5/RgVGS8vrcrwJUhNKQBTZEkg1Rx/WSesVUZ C5CsLLk8cdfqL548AJ6d9Op8ahDQYPU4BOQf3TPNJu2e65+UQZ7N2q74JGbZZyMy8KmE pFTQQmYCmWPmP61Tdwh/Qkhf8rn6fKNXN70Lm697D5iuhETA164I4VdR8WWVvMgg/lMa pC+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=M8SfnRamYFGQOJ4PWO6EKe5+yLLAmHFD9wjpR/2Zexc=; b=mizHsDav//vByYgkxiJnAc6kZkUWZ+ZRqVcUWoGVlz/bCCY6sJOcgGdhVx6oG2GZtW hqd+BDFdIDuy/nZfsOAqusn3ox9rLv5GgedL65MG0MPRRicStNTz9hQVV3YpL/r9n9+I bYeweoyigZFJjJcjuE4b10YcHyD9AaRXlRWYR56PkT8/B6B6VylJrLRGC85ocFV+819p Pg4aYFycvQYtrBDMxmQBuf5iMd2Skz2UXUMxUWObXUpUYIaY1/quNI7N2eUDL87hJKe7 Q8jL24SVbK2yLj3PuFWZPd/JbNYQuw8hErOXKD2j8G7s+/hsUtpAB488YOIRFGWfX1dQ Z5QQ== X-Gm-Message-State: AOAM533137tgADHQTqvfFkTkm/uUzbPQwyAJVEKYNq/SCFgPQWyaw5JL DjCOxiN+9zucOARDlgJZC47GTZCH3MAvMw== X-Received: by 2002:ac2:5f55:: with SMTP id 21mr53262771lfz.283.1641520899811; Thu, 06 Jan 2022 18:01:39 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id w12sm382837lfe.256.2022.01.06.18.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 18:01:39 -0800 (PST) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar , Kuogee Hsieh Subject: [RFC PATCH 5/7] drm/msm/dp: remove unused stubs Date: Fri, 7 Jan 2022 05:01:30 +0300 Message-Id: <20220107020132.587811-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220107020132.587811-1-dmitry.baryshkov@linaro.org> References: <20220107020132.587811-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, Stephen Boyd , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Refactoring DP code transformed several functions into empty stubs. Remove them. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 35 ----------------------------- 1 file changed, 35 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index 7b4f40cb9a58..e63d6056e39d 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -841,11 +841,6 @@ static int dp_display_set_mode(struct msm_dp *dp_display, return 0; } -static int dp_display_prepare(struct msm_dp *dp_display) -{ - return 0; -} - static int dp_display_enable(struct dp_display_private *dp, u32 data) { int rc = 0; @@ -915,11 +910,6 @@ static int dp_display_disable(struct dp_display_private *dp, u32 data) return 0; } -static int dp_display_unprepare(struct msm_dp *dp_display) -{ - return 0; -} - int dp_display_set_plugged_cb(struct msm_dp *dp_display, hdmi_codec_plugged_cb fn, struct device *codec_dev) { @@ -1400,21 +1390,9 @@ static int dp_pm_suspend(struct device *dev) return 0; } -static int dp_pm_prepare(struct device *dev) -{ - return 0; -} - -static void dp_pm_complete(struct device *dev) -{ - -} - static const struct dev_pm_ops dp_pm_ops = { .suspend = dp_pm_suspend, .resume = dp_pm_resume, - .prepare = dp_pm_prepare, - .complete = dp_pm_complete, }; static struct platform_driver dp_display_driver = { @@ -1565,13 +1543,6 @@ static void dp_bridge_enable(struct drm_bridge *drm_bridge) return; } - rc = dp_display_prepare(dp); - if (rc) { - DRM_ERROR("DP display prepare failed, rc=%d\n", rc); - mutex_unlock(&dp_display->event_mutex); - return; - } - state = dp_display->hpd_state; if (state == ST_DISPLAY_OFF) @@ -1583,7 +1554,6 @@ static void dp_bridge_enable(struct drm_bridge *drm_bridge) if (rc) { DRM_ERROR("DP display post enable failed, rc=%d\n", rc); dp_display_disable(dp_display, 0); - dp_display_unprepare(dp); } /* manual kick off plug event to train link */ @@ -1611,7 +1581,6 @@ static void dp_bridge_post_disable(struct drm_bridge *drm_bridge) { struct msm_dp_bridge *dp_bridge = to_dp_display(drm_bridge); struct msm_dp *dp = dp_bridge->dp_display; - int rc = 0; u32 state; struct dp_display_private *dp_display; @@ -1624,10 +1593,6 @@ static void dp_bridge_post_disable(struct drm_bridge *drm_bridge) dp_display_disable(dp_display, 0); - rc = dp_display_unprepare(dp); - if (rc) - DRM_ERROR("DP display unprepare failed, rc=%d\n", rc); - state = dp_display->hpd_state; if (state == ST_DISCONNECT_PENDING) { /* completed disconnection */