From patchwork Fri Mar 3 13:39:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 9602829 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 E079560453 for ; Fri, 3 Mar 2017 13:40:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D38EB28047 for ; Fri, 3 Mar 2017 13:40:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C81BE285FF; Fri, 3 Mar 2017 13:40:17 +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 6FE7428047 for ; Fri, 3 Mar 2017 13:40:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 86DF16ED23; Fri, 3 Mar 2017 13:40:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id C510C6ED23; Fri, 3 Mar 2017 13:40:12 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id n11so3209576wma.0; Fri, 03 Mar 2017 05:40: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=kNTaUFTeialK0rFNg0MQP6jHaJRtS+xWvB3SDvR1v+s=; b=Ph7qlygX2gdK73PTMkS03EjXBsMcWXV/cuv1mTr/qp1w2QILeJZNL763DWvqMQRa+A /8WHSndy73KNgkx3ogakGHiE5Lz/pEBJHUMZ1jRbGL64MCyimGSVXlG4hucClnlgBey1 MW7A0QhUDcktmdYWVFLoQyQVFXa+2KMjP9eQG3hMlZOoM+7nY41z0w/9z1MBjAkWxC/X euOM5RSuqdm3DMNGJCg08SXqWkY9/qOfKkPcSgAF6KqFw3YeV1vlafHRB44Dh87jVap4 X1LI7mRAkkzeACXc8UfpaUzEaJ74RUbv8AufRdyKNG/TXSBYoOmprpLzkq9NSojyWlrK 9jwQ== 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=kNTaUFTeialK0rFNg0MQP6jHaJRtS+xWvB3SDvR1v+s=; b=EocbTBPUGD25aR1hqwO+8O+Y0HxqDyWcDARvwxXzUYUsC8duabRTcbOrLB6Qpl6u+G o/SnHWJa4pnj8by9Vq6APUb/8QC7CSD8EM6daVUQWWCHI0rTcfy5SEB4DE64hiepKZWj 6AciHCaPDc0EjsirQLiuYw7JkQqUIJoYmGCh0IHrv/cXoD3gA/SkWPRT5v1C3uehP5S3 jgd39qak7/sBCxCwaCydoLgB5KXl6ROlz5F4PHUzIJlLY/s3ve5Dp74a82O3CZn8N8e4 N715u8y2h2KKPd5oswcbmGo0uTvVVEiCEUmRf1kXynTH3Wc7KKftNAvshJcRo9IA+Wyd pvyA== X-Gm-Message-State: AMke39lg5kc8XGHHl6lxEzjnEcZ9ht+Ai5bIQSIRd+WdJAJswxfNCwwgmul4xWRn14OcCQ== X-Received: by 10.28.11.205 with SMTP id 196mr2560581wml.31.1488548411494; Fri, 03 Mar 2017 05:40:11 -0800 (PST) Received: from cizrna.lan ([109.72.12.6]) by smtp.gmail.com with ESMTPSA id d42sm15247482wrd.7.2017.03.03.05.40.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2017 05:40:10 -0800 (PST) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Subject: [PATCH v6 1/4] drm/dp: add crtc backpointer to drm_dp_aux Date: Fri, 3 Mar 2017 14:39:33 +0100 Message-Id: <20170303133936.14964-2-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170303133936.14964-1-tomeu.vizoso@collabora.com> References: <20170303133936.14964-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 This backpointer allows DP helpers to access the crtc it's currently being used for. v6: Have the backpointer be to drm_crtc (Sean Paul) Signed-off-by: Tomeu Vizoso --- include/drm/drm_dp_helper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index ba89295c8651..a710e39b5f83 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -789,6 +789,7 @@ struct drm_dp_aux_msg { * @name: user-visible name of this AUX channel and the I2C-over-AUX adapter * @ddc: I2C adapter that can be used for I2C-over-AUX communication * @dev: pointer to struct device that is the parent for this AUX channel + * @crtc: backpointer to the crtc that is currently using this AUX channel * @hw_mutex: internal mutex used for locking transfers * @transfer: transfers a message representing a single AUX transaction * @@ -825,6 +826,7 @@ struct drm_dp_aux { const char *name; struct i2c_adapter ddc; struct device *dev; + struct drm_crtc *crtc; struct mutex hw_mutex; ssize_t (*transfer)(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg);