From patchwork Fri Oct 5 15:48:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Wang X-Patchwork-Id: 10628351 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 77CB3933 for ; Fri, 5 Oct 2018 15:48:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B33E29854 for ; Fri, 5 Oct 2018 15:48:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5FD172985E; Fri, 5 Oct 2018 15:48:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E317B29854 for ; Fri, 5 Oct 2018 15:48:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728042AbeJEWsJ (ORCPT ); Fri, 5 Oct 2018 18:48:09 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:37812 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727572AbeJEWsJ (ORCPT ); Fri, 5 Oct 2018 18:48:09 -0400 Received: by mail-yw1-f65.google.com with SMTP id y14-v6so5417135ywa.4 for ; Fri, 05 Oct 2018 08:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xElFqik/i1Nuy+Ef7zT5YU9DWq4DbN6e9fzJNlOuDC4=; b=k/fQT8NS01zGirzdhnHrD+vlUEWDaqffMX10KrrBRSY6KNiHvMW27NaAImgbHPaNkJ PxD2POGX+LV8jpqKC5nfWH+/Aw1NlHGAz3YQ/7UA04/QmSJ7hYFCCLQna0gkwc1w/e/x lNErEQvZ10AZOEbbX7mPqc1gUVDQg1s/G9uLA= 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=xElFqik/i1Nuy+Ef7zT5YU9DWq4DbN6e9fzJNlOuDC4=; b=hU6aWuP8Vqwh3WdVQURIKXSrv9JylBCexOClMPAVFey/QBYA/Wn0Dbhr2K8LUTwXqO Vlu4OxuvHscbgeYHREKuHxIw5gYxid6RK7aQKFXw13E0JRLGavyNDQPXzxblU3bbYD3n kt7q2li3T5wlkdaapT5tYAVPJqLhc05RfHQx0mSDjHvshSVaeHTRftokOWx4Kb4n5Dum 7g6RPqXcD4515Hr9FhGU/NxvfkyDpY3H0qADj9QcbSrFAY+oxMp1aaIGn1quC/9R7R+V m5FhQbEKDSfgG23b0jCJagqy57FyqsBhAFdqegpmWbT0Hcu/SL8kDFY0K7M87otQ6O3i qdOQ== X-Gm-Message-State: ABuFfohKznnkBAMLIUvdjI51vDmJ7tHgRhrIt5A8DE8jJtMUTQFDErUW 8a2TqNbIhT+7GqRTIV4k2xZyrQ== X-Google-Smtp-Source: ACcGV62EiQErWzvshL9VRbZ2cyDZ1KFdckWfWSIDD+fHg8U2KsBx8UkL6xAAAVEDP2kU0q8exm6m6A== X-Received: by 2002:a0d:eb4c:: with SMTP id u73-v6mr6518698ywe.125.1538754532414; Fri, 05 Oct 2018 08:48:52 -0700 (PDT) Received: from bzwang.cnc.corp.google.com ([2620:0:1013:11:6f9e:dcbe:41ef:a61]) by smtp.gmail.com with ESMTPSA id x64-v6sm7592281ywx.103.2018.10.05.08.48.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 08:48:51 -0700 (PDT) From: Bruce Wang To: freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Cc: seanpaul@chromium.org, jsanka@codeaurora.org, robdclark@gmail.com, abhinavk@codeaurora.org, jcrouse@codeaurora.org Subject: [PATCH 4/4] drm/msm/dpu: Remove suspend_state from dpu_kms Date: Fri, 5 Oct 2018 11:48:43 -0400 Message-Id: <20181005154843.172326-5-bzwang@chromium.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog In-Reply-To: <20181005154843.172326-1-bzwang@chromium.org> References: <20181005154843.172326-1-bzwang@chromium.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The suspend_state field is no longer used and can be removed along with dpu_kms_is_suspend_state. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h index 1991cbe424a3..2a3625eef6d3 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h @@ -135,9 +135,6 @@ struct dpu_kms { struct dpu_core_perf perf; - /* saved atomic state during system suspend */ - struct drm_atomic_state *suspend_state; - struct dpu_rm rm; bool rm_init; @@ -162,19 +159,6 @@ struct vsync_info { #define ddev_to_msm_kms(D) ((D) && (D)->dev_private ? \ ((struct msm_drm_private *)((D)->dev_private))->kms : NULL) -/** - * dpu_kms_is_suspend_state - whether or not the system is pm suspended - * @dev: Pointer to drm device - * Return: Suspend status - */ -static inline bool dpu_kms_is_suspend_state(struct drm_device *dev) -{ - if (!ddev_to_msm_kms(dev)) - return false; - - return to_dpu_kms(ddev_to_msm_kms(dev))->suspend_state != NULL; -} - /** * Debugfs functions - extra helper functions for debugfs support *