Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1498994pxk; Mon, 31 Aug 2020 23:24:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcO1U4RuOPivsk4Ixa8PNCZ6u7o7bVUXHuFjisKE59cln4vJWaiw34n78lJM5m28Hubytx X-Received: by 2002:aa7:dcd2:: with SMTP id w18mr435468edu.288.1598941461694; Mon, 31 Aug 2020 23:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598941461; cv=none; d=google.com; s=arc-20160816; b=scuIlulPFEngIjDiIKztRrxshPymwppBUFBvZZWSJbIGqBq84wRwJrEWlDsUms2xZr ZJgDN2qAGRP+06bHNk6r0YZk0Nl7wHiLbxMODpP6qkk9mAAD/dzeZ1UKdfn/EDZHW/lh XDk3inVFW+f4gzNyOH1IycteQtFWH2W5LqCJcM0yrLklCZRbAeSp4aZSDsMVZX3BQnS7 DxwG8jvubfFO1MjD+BCPWmzSl5DmV1igJDiS9xw+/NhjWNG6PpE2Mi2HzEu7Xe/ezBV1 ADdC1YB/zxjMYVheiKBh4d8yJMhXll8+YAxgkLqNGTl25bapVstKnJJ/HiOMbw612vy9 br+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oTJ5pvtNQxrk9Lcwfc0FfHwyW5E/r8XmOjx4wCngqbY=; b=B4bHdd0LgDJPwaSw3zyCdbZwJ4MRjYf1NHGENtPZGKh4uGcXsoyJblJAkH4dRejfwH fGmZ9karzRcfReNoEdLy3E949RC9Dtb30hgWAUPylxGLfozzJISFtLolDlsaF+EukFEQ 68CG7nxK2S6VGVihlzEVkYVKeQSzXmDjYdsfJpv4/dhpxi8IxkbHyn1pyqzTrmusSmOG tPpmIajgqugskrhBWX8uIWWGeLQwTzd7MkU36NPQ5c8nM3Q45eA5troQROhSo4VTJB+4 9vET0MZQgohdYHiiB3IwSk3zQz/rdlH3JDwWoMvaQX3khP/L47308Ko1EgU9IQfwQsuC GgDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E2a2L6cw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si153223ejz.445.2020.08.31.23.23.59; Mon, 31 Aug 2020 23:24:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b=E2a2L6cw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726377AbgIAGWq (ORCPT + 99 others); Tue, 1 Sep 2020 02:22:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbgIAGWp (ORCPT ); Tue, 1 Sep 2020 02:22:45 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2C6CC0612AC for ; Mon, 31 Aug 2020 23:22:45 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id y6so26888plk.10 for ; Mon, 31 Aug 2020 23:22:45 -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=oTJ5pvtNQxrk9Lcwfc0FfHwyW5E/r8XmOjx4wCngqbY=; b=E2a2L6cwaXjFouYizPEuvuYQpVqHSy3hFYgpFjjD7a8WiWTFnAM9Fz5bjhg+pdZCFZ XBgjeLAtRJmG2dA9fqQuSeOOoveqXXbPkaCudUIkJHksYBcqe4OWDcwpVmKTvAoEU9M7 XvDFtyHkvcJ5j8v6Kf8BpAHb5ibwuBbtTivdQ= 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=oTJ5pvtNQxrk9Lcwfc0FfHwyW5E/r8XmOjx4wCngqbY=; b=R+LZjMMeY3BmLDtVAzexnU5FRg6W0sx8oLTLZa472G2UfC4QDmGefQpdFvTJDhjIqv UR2VLkENh9027QGMIKTlQ1tqsxNvuwHeokzKmoUHFX26BQ38CXNKajKenY15FlObl4um WS+tL/F8rEcrpAfDjMRW3Lax5NeFYP24kEEW6mjzKSg4NYmHVJzxGUgUy6/n1V1H9V9o NCneQAnl/Ue8YIVMVjCPTufid6sCEuwK3d42L6MaF87gLdkmaq1bkwJzJCEpD3S7hHBG OoOmLHaVdqTnF03rJLsIE/RyumaxJa28mlZqkSmXo8SlUlqDlrKiWMGsrwKTTxaxIbQP Szow== X-Gm-Message-State: AOAM533+A4KyReVo69e+GxNvtJ+plfn7c4gZpE16/cLYUCw+el/hsfZh UtxOIORuqsxVGQHJ4Cvaoz/QVvfiz7F5JQ== X-Received: by 2002:a17:90a:db49:: with SMTP id u9mr139106pjx.90.1598941365043; Mon, 31 Aug 2020 23:22:45 -0700 (PDT) Received: from localhost ([2401:fa00:9:15:7220:84ff:fe09:cabc]) by smtp.gmail.com with ESMTPSA id y9sm338017pfn.85.2020.08.31.23.22.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Aug 2020 23:22:44 -0700 (PDT) From: Sam McNally To: LKML Cc: Hans Verkuil , Sam McNally , Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org Subject: [PATCH 3/5] drm_dp_mst_topology: export two functions Date: Tue, 1 Sep 2020 16:22:17 +1000 Message-Id: <20200901162133.3.I6c917ff82a1d2ae2253a3bd4d750d58879387cac@changeid> X-Mailer: git-send-email 2.28.0.402.g5ffc5be6b7-goog In-Reply-To: <20200901162133.1.I8693156f555875e5c8342e86ab37ce968dfdd277@changeid> References: <20200901162133.1.I8693156f555875e5c8342e86ab37ce968dfdd277@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans Verkuil These are required for the CEC MST support. Signed-off-by: Hans Verkuil Signed-off-by: Sam McNally --- drivers/gpu/drm/drm_dp_mst_topology.c | 6 ++---- include/drm/drm_dp_mst_helper.h | 4 ++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 0d753201adbd..c783a2a1c114 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -62,8 +62,6 @@ struct drm_dp_pending_up_req { static bool dump_dp_payload_table(struct drm_dp_mst_topology_mgr *mgr, char *buf); -static void drm_dp_mst_topology_put_port(struct drm_dp_mst_port *port); - static int drm_dp_dpcd_write_payload(struct drm_dp_mst_topology_mgr *mgr, int id, struct drm_dp_payload *payload); @@ -1864,7 +1862,7 @@ static void drm_dp_mst_topology_get_port(struct drm_dp_mst_port *port) * drm_dp_mst_topology_try_get_port() * drm_dp_mst_topology_get_port() */ -static void drm_dp_mst_topology_put_port(struct drm_dp_mst_port *port) +void drm_dp_mst_topology_put_port(struct drm_dp_mst_port *port) { topology_ref_history_lock(port->mgr); @@ -1935,7 +1933,7 @@ drm_dp_mst_topology_get_port_validated_locked(struct drm_dp_mst_branch *mstb, return NULL; } -static struct drm_dp_mst_port * +struct drm_dp_mst_port * drm_dp_mst_topology_get_port_validated(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port) { diff --git a/include/drm/drm_dp_mst_helper.h b/include/drm/drm_dp_mst_helper.h index c7c79e0ced18..d036222e0d64 100644 --- a/include/drm/drm_dp_mst_helper.h +++ b/include/drm/drm_dp_mst_helper.h @@ -754,6 +754,10 @@ drm_dp_mst_detect_port(struct drm_connector *connector, struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port); +struct drm_dp_mst_port *drm_dp_mst_topology_get_port_validated +(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port); +void drm_dp_mst_topology_put_port(struct drm_dp_mst_port *port); + struct edid *drm_dp_mst_get_edid(struct drm_connector *connector, struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port); -- 2.28.0.402.g5ffc5be6b7-goog