From patchwork Fri Jan 6 14:30:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 9501203 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 63E67606E0 for ; Fri, 6 Jan 2017 14:31:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C166284C8 for ; Fri, 6 Jan 2017 14:31:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F964284D0; Fri, 6 Jan 2017 14:31:23 +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 AF5BF284C8 for ; Fri, 6 Jan 2017 14:31:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 97A936EA14; Fri, 6 Jan 2017 14:31:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5D4536EA1B; Fri, 6 Jan 2017 14:31:02 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id c85so5362431wmi.1; Fri, 06 Jan 2017 06:31:02 -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=GYmcJ4rOCS2TAqcVFBbwcnILPseCrEG9m9Uu5a+chA9g0WMbtYmOFmYcz6jgGODN/j lRTRMQSbWv6kuoU+5ZmX6frEvvtLmu1TrGGlnNO4062zsFsEdHN/bD6ZluZw+W3XKuCQ RdlbNpaugMsLKsHsD22wuXemd0g2qrLfgO8PDRNxNV7dX9pkBI0Ld20HBPm7NEQ1PKnu kLMTWZYZZS2105/G5T72hDEDWuCZX288t6kugJYy8nIbcRb0UXj/uoEhabc6wnCnRwpb gQdIbNGoCEZ3Sv48J27pU7ct2Tjo/9ORe7pZt58+f41hR+AqJTxSqyGDB3Gi7x5gMX7S bCMg== 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=B42urFJph9lu3ISoGpwmrdGfQPFoFPlVLstsMbwEgBRN7TUVI7smVQaI+BxbtL9OX0 5E/6DUSQDd0GMdVCbIvq8v7s3S+rWO2vCzpl3yzfpDnykxDsZJ1M+fnFGg17W9i0tZlq bwLmhfb998t152B3SsraObYYmWXGkiKcNtUqubOjI5fCvIVr9wQmym6xkBRXNmGKhP7i qiHY3R8FQVTnoZdqy4cfcKkUDpqeq/w0Y6MafwRnzWviVVifj5ZTUh8AwLSrXjAjQLPs +8kr4TA6PYlYDrL8gNMSNKjwnEcdmZLkNCmWThw4nzInw9mHSSiXdTym1HaaHIiobu+H TZrQ== X-Gm-Message-State: AIkVDXL5e2QmnK9l0jtCc8lUyBsYQBCXhqzc3CVYW2KOfCiDLFYl/3a7yv3G2IFhvkkiKQ== X-Received: by 10.223.172.168 with SMTP id o37mr1211781wrc.21.1483713060351; Fri, 06 Jan 2017 06:31:00 -0800 (PST) Received: from cizrna.lan ([109.72.12.216]) by smtp.gmail.com with ESMTPSA id u78sm3644493wma.11.2017.01.06.06.30.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Jan 2017 06:30:59 -0800 (PST) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Subject: [PATCH v3 4/5] drm/bridge: analogix_dp: add helpers for capture of frame CRCs Date: Fri, 6 Jan 2017 15:30:28 +0100 Message-Id: <20170106143029.11553-5-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170106143029.11553-1-tomeu.vizoso@collabora.com> References: <20170106143029.11553-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_ */