From patchwork Tue Jun 19 20:18:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 10476155 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9A35A604D3 for ; Wed, 20 Jun 2018 07:30:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86E5828D25 for ; Wed, 20 Jun 2018 07:30:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B5E528D8B; Wed, 20 Jun 2018 07:30:11 +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=-5.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 462AE28D83 for ; Wed, 20 Jun 2018 07:30:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0BB5E6E6AB; Wed, 20 Jun 2018 07:29:37 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id DB3F46E5C5; Tue, 19 Jun 2018 20:18:35 +0000 (UTC) Received: by mail-wr0-x244.google.com with SMTP id o12-v6so904550wrm.12; Tue, 19 Jun 2018 13:18:35 -0700 (PDT) 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; bh=NcL/zo0blm6zwSCIbjX1HSv+ZShL1iTtOkNZAPSUxDs=; b=Ul3JjqI56XJIj4oWSNbrEzfzPtllIEW4co7++fYeaP6l2dVcuLdcWntZQ6wv7EXfrn 9kT86CvdJvWc6BAQCoZcacMfzCNNS+KCZD2o41A1i1NGWnLZJJq9ZNNllsS3tUOd2UfP cbFBFwwXJYGGBl7jWHTrHUsDxrKyi/fxlO6SVFRLPo7yiH8XcD9B3SaWPQyPv1t0ifX4 8okIcd5oWR+ceZa0MBSBUIZFw3ZHmPTgG5g4VYyqsrVTZjFJYCVMV+GSxM4PdKIi3ShP M72pktPvcg2OoCmUYDE1UcUac1yV5te8LHqoajyznbD32lCGya2I3sY4gcNVRaZHbwiy pbGw== X-Gm-Message-State: APt69E2qAdmwgTXCIk8w7lLCVWU5uiOl4ntt5tU4RWfS+2/C7g4/l8Mv Rt/6IZwje0NN+rawgddta766unNy X-Google-Smtp-Source: ADUXVKI2+RVHYCUVegJRLx1UBvxP2TD3dwYbE1KpxERLmjrxKVva6rojZp67CmpYdorY3W78i74hJA== X-Received: by 2002:adf:a4cf:: with SMTP id h15-v6mr15928156wrb.130.1529439514653; Tue, 19 Jun 2018 13:18:34 -0700 (PDT) Received: from shalem.localdomain.com (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id m65-v6sm1104243wmd.1.2018.06.19.13.18.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jun 2018 13:18:34 -0700 (PDT) From: Hans de Goede X-Google-Original-From: Hans de Goede To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Daniel Vetter Subject: [PATCH 3/4] drm/i915/intel_dsi: Make intel_connector_get_hw_state() non static Date: Tue, 19 Jun 2018 22:18:26 +0200 Message-Id: <20180619201827.4257-4-hdegoede@redhat.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619201827.4257-1-hdegoede@redhat.com> References: <20180619201827.4257-1-hdegoede@redhat.com> X-Mailman-Approved-At: Wed, 20 Jun 2018 07:29:34 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hans de Goede , intel-gfx , dri-devel@lists.freedesktop.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Make intel_connector_get_hw_state() non static so that it can be called from the intel_dsi_vbt.c code. This is a preparation patch for reading back the GOP configured pclk from intel_dsi_vbt_init(). Signed-off-by: Hans de Goede --- drivers/gpu/drm/i915/intel_dsi.c | 3 +-- drivers/gpu/drm/i915/intel_dsi.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c index 103fe460f78c..5e2bb13f7b6d 100644 --- a/drivers/gpu/drm/i915/intel_dsi.c +++ b/drivers/gpu/drm/i915/intel_dsi.c @@ -1005,8 +1005,7 @@ static void intel_dsi_post_disable(struct intel_encoder *encoder, intel_dsi_msleep(intel_dsi, intel_dsi->panel_pwr_cycle_delay); } -static bool intel_dsi_get_hw_state(struct intel_encoder *encoder, - enum pipe *pipe) +bool intel_dsi_get_hw_state(struct intel_encoder *encoder, enum pipe *pipe) { struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); diff --git a/drivers/gpu/drm/i915/intel_dsi.h b/drivers/gpu/drm/i915/intel_dsi.h index 7afeb9580f41..34ce3ef395ef 100644 --- a/drivers/gpu/drm/i915/intel_dsi.h +++ b/drivers/gpu/drm/i915/intel_dsi.h @@ -132,6 +132,7 @@ static inline struct intel_dsi *enc_to_intel_dsi(struct drm_encoder *encoder) /* intel_dsi.c */ void wait_for_dsi_fifo_empty(struct intel_dsi *intel_dsi, enum port port); enum mipi_dsi_pixel_format pixel_format_from_register_bits(u32 fmt); +bool intel_dsi_get_hw_state(struct intel_encoder *encoder, enum pipe *pipe); /* intel_dsi_pll.c */ bool intel_dsi_pll_is_enabled(struct drm_i915_private *dev_priv);