From patchwork Wed Dec 10 23:53:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todd Previte X-Patchwork-Id: 5473301 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F3C78BEEA8 for ; Wed, 10 Dec 2014 23:54:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D2A120172 for ; Wed, 10 Dec 2014 23:54:06 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 675BC200DF for ; Wed, 10 Dec 2014 23:54:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D30906E705; Wed, 10 Dec 2014 15:54:04 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by gabe.freedesktop.org (Postfix) with ESMTP id E77A46E705 for ; Wed, 10 Dec 2014 15:54:03 -0800 (PST) Received: by mail-pd0-f180.google.com with SMTP id w10so3735250pde.25 for ; Wed, 10 Dec 2014 15:54:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mnnmd2pZ2b9XEqlvzOT65uA1J3Oa3Nt0TV1mcR8EtqU=; b=Of1IRWouGEqy5DzNwE4oSM6PAqj3SaVoZT+ixSeQaiJD/j9vcwIXFHQmLDGMSnKOqp xzShFdXjyB0f/FybYYThAcm3UcUW4Z0MjRTDmTEhtGthiEby2dO5YYijyNdCrzl0dyaE r8YFRfNBeQdOr3TvaI2qiZX590ToRRMbadv6f7+fZKr2ODruhaPSuaL0RLRwnre2gYLq GDrfVJRfnXuLI1lBHNR0x0ntj9a9zlbVZ1MVAPxnuYpFN+N5BKEJYd0nWicqV+4yx9SH 5hw0/HOwKNhJxeyUxbg3GqFNLvPRds65iWWI/tUxVHBpkhoIj1bTIfb+mhsYHqJtHIuD SdQA== X-Received: by 10.68.216.167 with SMTP id or7mr11508395pbc.166.1418255643822; Wed, 10 Dec 2014 15:54:03 -0800 (PST) Received: from localhost.localdomain (ip68-3-234-27.ph.ph.cox.net. [68.3.234.27]) by mx.google.com with ESMTPSA id gy10sm5164958pbd.67.2014.12.10.15.54.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Dec 2014 15:54:02 -0800 (PST) From: Todd Previte To: intel-gfx@lists.freedesktop.org Date: Wed, 10 Dec 2014 16:53:05 -0700 Message-Id: <1418255597-4716-6-git-send-email-tprevite@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418255597-4716-1-git-send-email-tprevite@gmail.com> References: <1418255597-4716-1-git-send-email-tprevite@gmail.com> Subject: [Intel-gfx] [PATCH 05/17] drm/i915: Add file ops for Displayport configuration in debugfs X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch was also part of "[PATCH 05/10] drm/i915: Add debugfs interface for Displayport debug and compliance testing". Adds file operations structures for Displayport configuration in debugfs for compliance testing. Also adds the declarations for the open() and write() functions listed in the file ops structure. Signed-off-by: Todd Previte --- drivers/gpu/drm/i915/i915_debugfs.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 65b4f5e..feae100 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -3694,6 +3694,28 @@ static const struct file_operations i915_display_crc_ctl_fops = { .write = display_crc_ctl_write }; +static int displayport_config_ctl_open(struct inode *inode, + struct file *file) +{ + return 0; +} + +static ssize_t displayport_config_ctl_write(struct file *file, + const char __user *ubuf, + size_t len, loff_t *offp) +{ + return 0; +} + +static const struct file_operations i915_displayport_config_ctl_fops = { + .owner = THIS_MODULE, + .open = displayport_config_ctl_open, + .read = seq_read, + .llseek = seq_lseek, + .release = single_release, + .write = displayport_config_ctl_write +}; + static void wm_latency_show(struct seq_file *m, const uint16_t wm[8]) { struct drm_device *dev = m->private; @@ -4446,6 +4468,7 @@ static const struct i915_debugfs_files { {"i915_spr_wm_latency", &i915_spr_wm_latency_fops}, {"i915_cur_wm_latency", &i915_cur_wm_latency_fops}, {"i915_fbc_false_color", &i915_fbc_fc_fops}, + {"i915_displayport_config_ctl", &i915_displayport_config_ctl_fops} }; void intel_display_crc_init(struct drm_device *dev)