From patchwork Mon Jan 9 13:32: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: 90446 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp618124obz; Mon, 9 Jan 2017 05:33:52 -0800 (PST) X-Received: by 10.99.217.81 with SMTP id e17mr161511929pgj.127.1483968832153; Mon, 09 Jan 2017 05:33:52 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id t18si9989937pfj.268.2017.01.09.05.33.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jan 2017 05:33:52 -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 dis=NONE) header.from=collabora.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 759C96E43C; Mon, 9 Jan 2017 13:33:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id DCE7F6E252; Mon, 9 Jan 2017 13:33:05 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id l2so22246894wml.2; Mon, 09 Jan 2017 05:33:05 -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=K4s0vsWa/vu1mMK8mrv/x+T7UF1z5qfmsZTP8EiVzr4=; b=GGDykEm6Eapy5K2HuNV0/hmGgsI11cAyaWgEHdu6IwG3yoSaVs+QYs+dJuY0yZxL0M ZIltlmqVsW8tf5hKc3tTWPrSpK/BHF4ERp5t8nMWfy+Zw8Gzkmy5ehFOEOTO7OUIjMCo dLCI4tZZn65aoN4hd2xox7hfzlTa49XMHLGQf5Ju8d+ytppr0UPHIqHclSW3/DWIiOef p2zYIWLpNDuFOyFIUnq5xu6zrsVEBMyD4paF4GNfvdgdZagjxgEDqJ5kGDksVf6z1Xhb eEMOfvCpelg0kCCIAX1CNckzLuD1vjsbftujk/c0P72852Ml+zpcWHXcUMevZ+yiZNxy XK0g== 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=K4s0vsWa/vu1mMK8mrv/x+T7UF1z5qfmsZTP8EiVzr4=; b=UR5yAky5ppJl3/yi/5QE10x+MkLguxFRPQkGmPiQuXkBdBjWCyR7ubn2OgwdzLBWI+ Ynu6UNrn7LnHcwG57E7unCp2xesVB1NttKYauuRzwsjEeNtEqtQxXzZx3t5XajmGEPpY 3jokVa/Re6FcUnlZW9a+J/AeO+Q9xdxs84gSm/nFQFIIIW8pzBKj5ucT3feslD5NdACC /wrM7YWMHzL+oNrboO59Cfzi/Z3DQVIo9w5qsYVKOWtBhaWkWPn0hy5ST3LwsxiNysuY eB4UsQHQwVOEOeoa4wphs3j1paRjMeKzeT1Pv/tIxaq/de+yzxvmElp0QcIjjj4kqcXs H1sg== X-Gm-Message-State: AIkVDXJUmmBfUQgev8XV2nxVtYhNJegji4eNuD+wWXkUSmqOboPA8uFdJEfMbzSJBUHamQ== X-Received: by 10.28.88.18 with SMTP id m18mr4184201wmb.26.1483968784076; Mon, 09 Jan 2017 05:33:04 -0800 (PST) Received: from cizrna.lan ([109.72.12.251]) by smtp.gmail.com with ESMTPSA id u78sm18908423wma.11.2017.01.09.05.33.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jan 2017 05:33:02 -0800 (PST) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Subject: [PATCH v4 1/5] drm/dp: add connector backpointer to drm_dp_aux Date: Mon, 9 Jan 2017 14:32:33 +0100 Message-Id: <20170109133237.17413-2-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170109133237.17413-1-tomeu.vizoso@collabora.com> References: <20170109133237.17413-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 connector it's being used for. 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 55bbeb0ff594..4fa77b434594 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -721,6 +721,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 + * @connector: backpointer to connector that uses this AUX channel * @hw_mutex: internal mutex used for locking transfers * @transfer: transfers a message representing a single AUX transaction * @@ -757,6 +758,7 @@ struct drm_dp_aux { const char *name; struct i2c_adapter ddc; struct device *dev; + struct drm_connector *connector; struct mutex hw_mutex; ssize_t (*transfer)(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg);