From patchwork Mon Jan 9 13:32:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 9504635 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 544D360710 for ; Mon, 9 Jan 2017 13:33:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52D3728112 for ; Mon, 9 Jan 2017 13:33:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47E2E284AA; Mon, 9 Jan 2017 13:33:29 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham 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 5252C28112 for ; Mon, 9 Jan 2017 13:33:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 714706E43F; Mon, 9 Jan 2017 13:33:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3FFA46E437; Mon, 9 Jan 2017 13:33:12 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id l2so22247618wml.2; Mon, 09 Jan 2017 05:33:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=vU5PDoIH9WVoeFGZTAdHFjWvHqTPkgWey3Ul2ilJ/ek=; b=WlYjtZ2zL69CoFCWLdtr9scZDZE8+xuEPdzZ67K2SDfr8Mm1P+nqLXRgM6NrdRa/l6 Ntn7fDTee+8eDgvbmDwDXoSm9Y9+gOxCRgJ+/ibC8QZdKIVvN0gJbN/kdfIznwRI3oDJ aLuL4ryMVT9MDwdsO95sCC1GR15dOkc1NKJ2sKSl8WTzvYo26pefHsEBKh5RuHrYEykS DPAsXKq0UzIq6n6d/6AJTXPElfvuKKLid4asbUZTgYKB6z4NMQIRNR2jzokvglIKko0+ V2bydHR+04Mja6L2PjEw+FJz7DNwY7x87AbcIM0kVF1eR5rk4+zED7ins1Icp16bNL3s t4+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=vU5PDoIH9WVoeFGZTAdHFjWvHqTPkgWey3Ul2ilJ/ek=; b=K3hVdUw47sNx/tAJU9s0V0bEbYTOnBz+cKkEHc6MehOhdlUTP1ET44sHKxZvWIpsxB cGw1BRsj+Y3F0tIwB2pf0c844+khFv3vNJAPeHhlUKL78P/LJeafq8yZ8jUyaqqb8hvE JpUo1MPinMNHYlkN78YH5jRbFGsUH5XsKnhrcPDR5uETrn0yhwZ9zbi4jzaQAXHzdE++ Q0DS+2oj3lX+lSYwYIykYQmG3m8VG4Q/jjy/mSnhbd6dGwNQzmxuDS7k2lff40UAhhv8 IgIMTh+6vvM8/mm1qDt1WeItMV/6aVtavAoiL0Sp1gCcbPXhcPNqeIB1eCaNYHdjNR6a Fw1w== X-Gm-Message-State: AIkVDXI3HkB27WgB1/mFSLK9sNjWeTf7eA/6Q06MpsYiQ8iwZR440ypTM6A4nRX46dkMMQ== X-Received: by 10.28.153.201 with SMTP id b192mr4904055wme.61.1483968790427; Mon, 09 Jan 2017 05:33:10 -0800 (PST) Received: from cizrna.lan ([109.72.12.251]) by smtp.gmail.com with ESMTPSA id u78sm18908423wma.11.2017.01.09.05.33.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jan 2017 05:33:09 -0800 (PST) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Subject: [PATCH v4 4/5] drm/bridge: analogix_dp: add helpers for capture of frame CRCs Date: Mon, 9 Jan 2017 14:32:36 +0100 Message-Id: <20170109133237.17413-5-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170109133237.17413-1-tomeu.vizoso@collabora.com> References: <20170109133237.17413-1-tomeu.vizoso@collabora.com> Cc: Tomeu Vizoso , Emil Velikov , dri-devel@lists.freedesktop.org, intel-gfx-trybot@lists.freedesktop.org, Daniel Vetter X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add two simple functions that just take the drm_dp_aux from our struct and calls the corresponding DP helpers with it. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 16 ++++++++++++++++ include/drm/bridge/analogix_dp.h | 3 +++ 2 files changed, 19 insertions(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index 7d45d3e4600a..02f63eb1b887 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c @@ -1483,6 +1483,22 @@ int analogix_dp_resume(struct device *dev) EXPORT_SYMBOL_GPL(analogix_dp_resume); #endif +int analogix_dp_start_crc(struct drm_connector *connector) +{ + struct analogix_dp_device *dp = to_dp(connector); + + return drm_dp_start_crc(&dp->aux); +} +EXPORT_SYMBOL_GPL(analogix_dp_start_crc); + +int analogix_dp_stop_crc(struct drm_connector *connector) +{ + struct analogix_dp_device *dp = to_dp(connector); + + return drm_dp_stop_crc(&dp->aux); +} +EXPORT_SYMBOL_GPL(analogix_dp_stop_crc); + MODULE_AUTHOR("Jingoo Han "); MODULE_DESCRIPTION("Analogix DP Core Driver"); MODULE_LICENSE("GPL v2"); diff --git a/include/drm/bridge/analogix_dp.h b/include/drm/bridge/analogix_dp.h index f6f0c062205c..c99d6eaef1ac 100644 --- a/include/drm/bridge/analogix_dp.h +++ b/include/drm/bridge/analogix_dp.h @@ -49,4 +49,7 @@ int analogix_dp_bind(struct device *dev, struct drm_device *drm_dev, struct analogix_dp_plat_data *plat_data); void analogix_dp_unbind(struct device *dev, struct device *master, void *data); +int analogix_dp_start_crc(struct drm_connector *connector); +int analogix_dp_stop_crc(struct drm_connector *connector); + #endif /* _ANALOGIX_DP_H_ */