From patchwork Thu Jan 12 08:58:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 9512387 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 5FAE660476 for ; Thu, 12 Jan 2017 08:59:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54FF6285FE for ; Thu, 12 Jan 2017 08:59:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49E9928648; Thu, 12 Jan 2017 08:59:15 +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 A8D4B285FE for ; Thu, 12 Jan 2017 08:59:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DCAE26EBDC; Thu, 12 Jan 2017 08:59:13 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5D5A36EBDC; Thu, 12 Jan 2017 08:59:12 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id l2so2202151wml.2; Thu, 12 Jan 2017 00:59: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=gWOYY9gBM34kEjTYulMw+M1RKz7+CDwSO/g5VNf9V3w=; b=WRdxU+KY8SMW9GOpDSughQrltrRJnqM3m5r7a4EIZ4S2DuI8SzBZb7HmwuanC0jtEA X6XY/82js/zeJfxzFttTvHRwqfOzuaZGjezMQ9al8eNQ3VhYnFUSxK7/JtJ2Qg0rGc6I krq5qZP1o9iH2yOG1gxW5UYV42gVFej5t6CoJCbufZeZs5cwVTMoyiieiU5SEK+pLK5Q Y2yWx1+Y4pKRy7TM9NtCRkZP0tHeTyns8HkoAqtJ2x3NlPHZCZG3nzAgBXsLcVHTRgEE wbAn0uHnya/6xenxDWWEU3Hdh9lNAIHEIE4VPLv8h07nwEPIFWouKqVLfOckA8mwQ81H RuOg== 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=gWOYY9gBM34kEjTYulMw+M1RKz7+CDwSO/g5VNf9V3w=; b=C2d02tK4nOqwo52Gc5BX6WdJv3XNhaZhqhtqD5tCVHeqGc8WwFfwkC6BabtRlD1eKn luycOBQR8u5Oh5bnI3kMec3TolA79zwKzcOzMiAQjHRZg4yg/27rtShQD58ZgIZ1Z9SU WP7N1NUxF9ZBh5ksojahumjLu4yWuucpmBRLP1H9fW384MzRIA4ynYSwIw2eFEz0UbUS cBJZri28O+I3IRCoWbuqy6XO69ygJEYJU9zzTVaznp88jAnatI7gUcxjVux13douSANZ V4KAkSrwol2RMXvih5MStoo7r9Usx9uNpobCoNUheY30nO6zvbpPCfO/6Ku0jwquhZZR RAZA== X-Gm-Message-State: AIkVDXIfLb369dUAo6rs1laMVtsk3dvh+Ebzwt52Wbl0tVyfZt3Ei6JIfdT+9o4aanfw5w== X-Received: by 10.28.30.146 with SMTP id e140mr7855364wme.112.1484211550880; Thu, 12 Jan 2017 00:59:10 -0800 (PST) Received: from cizrna.lan ([109.72.12.134]) by smtp.gmail.com with ESMTPSA id t194sm2181476wmd.1.2017.01.12.00.59.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 00:59:09 -0800 (PST) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Subject: [PATCH v5 3/4] drm/bridge: analogix_dp: add helpers for capture of frame CRCs Date: Thu, 12 Jan 2017 09:58:43 +0100 Message-Id: <20170112085844.19878-4-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170112085844.19878-1-tomeu.vizoso@collabora.com> References: <20170112085844.19878-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 44c2b74bf771..f5e0379d9abe 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c @@ -1490,6 +1490,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_ */