From patchwork Thu Jan 5 13:06:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 9498985 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 4C2EF606DE for ; Thu, 5 Jan 2017 13:08:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48167283AC for ; Thu, 5 Jan 2017 13:08:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CB00283E5; Thu, 5 Jan 2017 13:08:03 +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 9EB53283AC for ; Thu, 5 Jan 2017 13:08:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D8FA06E2F7; Thu, 5 Jan 2017 13:07:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x241.google.com (mail-wj0-x241.google.com [IPv6:2a00:1450:400c:c01::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id F351B6E2F4; Thu, 5 Jan 2017 13:07:43 +0000 (UTC) Received: by mail-wj0-x241.google.com with SMTP id j10so79242541wjb.3; Thu, 05 Jan 2017 05:07:43 -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=g3uvLugCHpmWwgFM542dcz5pY6W3sgUzddeZSHUMf4wOLDqe1lXARNFmbJd2HjeoC1 f33QOnS4X4D5m38GxM12d42+mEr0nX7cJjPKK6divU5aPoBZqZ5H4xRegA2OTQxY5DUv BsUM5RXAdBk6g/bh4OLWE5NGI80ojuGsTtQCdRD13itu3BTWFnzkKqy1BT01ueV2AMRL B/YqWHiZemTQuRCtMQnnWr6f8yFneOmZ7NuI1IL35Im/phM6BBnDsO8ZWVmPst3ZZXxn oXX9MnQHwB7A4XB4ID/yfVeDbJ8KSbpD/XJBc6kxRQ/MIN3ArmroRq+7tRjAYUgjLA1B f1Iw== 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=RG022EwpszzrMRIkaKlCSKmmN/IIfHK2Poke8wn+XGD/Jln6b/cM292L71K4Ui7KOm cCoVB6zU+KmNHfF4uDtQKlgiQ/IqQmM4vQIXV6b57XxnDkLQoREkHTItc/kYDpIw6gAw 6uNBJxccO6EOvhswu4Skyl8H7ivaGH/tFk8HLLL0HJmCmC2MfF4kNbSn4jTGsgrkGyqn ZqxZkjbaW64Xp711xJMtzo0L+hYNgN0Cekrql89vd0IRRxS5ZVJougZ0303NTAtExnKt OxBXbaNlJYIDxUtF9ogBSPmFJgeR8hO2O7foaMXpealNn9Sa0GS44PVfP/8RWUTK8v59 eITQ== X-Gm-Message-State: AIkVDXL3cKeOvBenKoIPbDdYH6O+CUthTSU3ktaNNn/zmnXTndYZDcKkR1K8HnmDJAXCzA== X-Received: by 10.194.95.35 with SMTP id dh3mr68418973wjb.141.1483621662087; Thu, 05 Jan 2017 05:07:42 -0800 (PST) Received: from cizrna.lan ([109.72.12.216]) by smtp.gmail.com with ESMTPSA id b3sm103716992wjy.40.2017.01.05.05.07.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jan 2017 05:07:41 -0800 (PST) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Subject: [PATCH v2 4/5] drm/bridge: analogix_dp: add helpers for capture of frame CRCs Date: Thu, 5 Jan 2017 14:06:47 +0100 Message-Id: <20170105130648.3139-5-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170105130648.3139-1-tomeu.vizoso@collabora.com> References: <20170105130648.3139-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_ */