Received: by 10.213.65.68 with SMTP id h4csp1779855imn; Mon, 19 Mar 2018 13:03:34 -0700 (PDT) X-Google-Smtp-Source: AG47ELs8+VIBN41xckr452zfl+bSYpnpZFs1tUdkcz+9pe/E/TpGRUt7H6ksTbftQL8hSu0CpF10 X-Received: by 2002:a17:902:8c91:: with SMTP id t17-v6mr13805670plo.233.1521489814701; Mon, 19 Mar 2018 13:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521489814; cv=none; d=google.com; s=arc-20160816; b=UcRY7Ix0RJp77J5Dp/V30zNigZbfaBWifladCjjlcBthDNoq9xpy/e4+Qfwnp3AVyK gYafGmO0jNxZxmDupTEMzU7Go+ixM04dR4FSXr8YuLVw5B8q7xbyry/EOgIVoTnqqhiG YzsCLBK4nmmIIHoARDjhSPtcAcucoW3hGXQDiEL2iKq1aAcqMYj1Ew1myIGVlC+V5ukc qas3eyyD76T69QrkkMmXLkTfyfC7KiFpUl9XVv9pvhw0bagqpf/Yq/THYLnyxcwMg2o5 ZuwNEOXEOhfUY+Nlwa6HtfQB3SyhfRh8QlbKV5q7SUqOv1KxAZQ9m74SaeM6ej45KzYt sl9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=m8tyK2XdGnjlnumf5srQW6/7ORsua7ubLGTepTgFiZU=; b=MXOrXA/5of3gAotBNuifwfWhK26dfPE8qqRafkgm0zIgHo+V2iwhPvr7JsWYSmCnBW RbE1VnyQs203MpNjrtAgvAApXy57BP1rJjT8lTkp+kZ6kBw7SqWUq2j0SwdiHbzLGAbm ATfK+Mkcj1rSp7CT418UrD3NADnQg0e2eLi1An7iLaaG/8eHexEtVdOgUsCgOE6e0Ivu 2Ud4XVglgxR5TosjHrYYBpAVQplxr8AYXcj8J5KX9ERPFG7r13W76hbs/sy2P7+SFeih RH2bFyErbuE3cDYnkUMH0/hS8hqWIN77WzUxGuYbD4zBG+uVJSXS+5vXUzmNTK609DFj Ttjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si432551pgc.717.2018.03.19.13.03.19; Mon, 19 Mar 2018 13:03:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031167AbeCSUBc (ORCPT + 99 others); Mon, 19 Mar 2018 16:01:32 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46354 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967307AbeCSSSZ (ORCPT ); Mon, 19 Mar 2018 14:18:25 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C43E8E02; Mon, 19 Mar 2018 18:18:24 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen-Yu Tsai , Maxime Ripard , Sasha Levin Subject: [PATCH 4.9 014/241] drm/sun4i: Set drm_crtc.port to the underlying TCONs output port node Date: Mon, 19 Mar 2018 19:04:39 +0100 Message-Id: <20180319180751.766649626@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chen-Yu Tsai [ Upstream commit 7544860733d158e3edbf309f27e79e258c8f66bd ] The way drm_of_find_possible_crtcs works is it tries to match the remote-endpoint of the given node's various endpoints to all the crtc's .port field. Thus we need to set drm_crtc.port to the output port node of the underlying TCON. Signed-off-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/sun4i/sun4i_crtc.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/gpu/drm/sun4i/sun4i_crtc.c +++ b/drivers/gpu/drm/sun4i/sun4i_crtc.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -136,5 +137,9 @@ struct sun4i_crtc *sun4i_crtc_init(struc drm_crtc_helper_add(&scrtc->crtc, &sun4i_crtc_helper_funcs); + /* Set crtc.port to output port node of the tcon */ + scrtc->crtc.port = of_graph_get_port_by_id(drv->tcon->dev->of_node, + 1); + return scrtc; }