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: 9504633 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 6AAB760710 for ; Mon, 9 Jan 2017 13:33:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 697DB28112 for ; Mon, 9 Jan 2017 13:33:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E64B284AA; Mon, 9 Jan 2017 13:33:23 +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 043A428112 for ; Mon, 9 Jan 2017 13:33:23 +0000 (UTC) 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" X-Virus-Scanned: ClamAV using ClamSMTP 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);