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: 94839 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp240107qgd; Fri, 3 Mar 2017 05:40:46 -0800 (PST) X-Received: by 10.84.193.101 with SMTP id e92mr4591020pld.4.1488548446419; Fri, 03 Mar 2017 05:40:46 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id q25si10664092pgd.195.2017.03.03.05.40.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2017 05:40:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com 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" 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);