From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrzej Hajda Subject: Re: [PATCH v2 1/7] drm/exynos: add super device support Date: Wed, 02 Apr 2014 16:06:40 +0200 Message-ID: <533C1970.70003@samsung.com> References: <1396355882-17010-1-git-send-email-inki.dae@samsung.com> <1396355882-17010-2-git-send-email-inki.dae@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by gabe.freedesktop.org (Postfix) with ESMTP id 9ECED6E64D for ; Wed, 2 Apr 2014 07:06:45 -0700 (PDT) Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3E00GGIPUYLY50@mailout2.w1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 02 Apr 2014 15:06:34 +0100 (BST) In-reply-to: <1396355882-17010-2-git-send-email-inki.dae@samsung.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Inki Dae , airlied@linux.ie, dri-devel@lists.freedesktop.org Cc: kyungmin.park@samsung.com List-Id: dri-devel@lists.freedesktop.org On 04/01/2014 02:37 PM, Inki Dae wrote: > This patch adds super device support to bind sub drivers > using device tree. > > For this, you should add a super device node to each machine dt files > like belows, > > In case of using MIPI-DSI, > display-subsystem { > compatible = "samsung,exynos-display-subsystem"; > ports = <&fimd>, <&dsi>; > }; > > In case of using DisplayPort, > display-subsystem { > compatible = "samsung,exynos-display-subsystem"; > ports = <&fimd>, <&dp>; > }; > > In case of using Parallel panel, > display-subsystem { > compatible = "samsung,exynos-display-subsystem"; > ports = <&fimd>; > }; > > And if you don't add connector device node to ports property, > default parallel panel driver, exynos_drm_dpi module, will be used. > > ports property can have the following device nodes, > fimd, mixer, Image Enhancer, MIPI-DSI, eDP, LVDS Bridge, or HDMI > > With this patch, we can resolve the probing order issue without > some global lists. So this patch also removes the unnecessary lists and > stuff related to these lists. > (...) > diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c > index 40fd6cc..7ebfe15 100644 > --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c > +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c > @@ -19,10 +19,12 @@ > #include > #include > #include > +#include > > #include