From: Hoegeun Kwon <hoegeun.kwon@samsung.com>
To: Rob Herring <robh@kernel.org>, David Airlie <airlied@linux.ie>,
Daniel Vetter <daniel.vetter@intel.com>,
Sean Paul <seanpaul@chromium.org>
Cc: Neil Armstrong <narmstrong@baylibre.com>,
Liviu Dudau <liviu.dudau@arm.com>,
dri-devel@lists.freedesktop.org,
Tomi Valkeinen <tomi.valkeinen@ti.com>,
Frank Rowand <frowand.list@gmail.com>,
Marek Vasut <marex@denx.de>, Kevin Hilman <khilman@baylibre.com>,
Chen-Yu Tsai <wens@csie.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Xinliang Liu <z.liuxinliang@hisilicon.com>,
Javier Martinez Canillas <javier@osg.samsung.com>,
Xinwei Kong <kong.kongxinwei@hisilicon.com>,
Kukjin Kim <kgene@kernel.org>,
Mali DP Maintainers <malidp@foss.arm.com>,
devicetree@vger.kernel.org, Chen Feng <puck.chen@hisilicon.com>,
Jyri Sarha <jsarha@ti.com>, Carlo Caione <carlo@caione.org>,
Russell King <rmk+kernel@armlinux.org.uk>,
Matthias Brugger <matthias.bgg@gmail.com>,
Alison Wang <alison.wang@freescale.com>,
Jingoo Han <jingoohan1@gmail.com>,
Seung-Woo Kim <sw0312.kim@samsung.com>,
linux-kernel@vger.kernel.org,
Kyungmin Park <kyungmin.park@samsung.com>,
Rongrong Zou <zourongrong@gmail.com>,
Maxime Ripard <maxime.ripard@free-electrons.com>
Subject: Re: [PATCH v2 4/6] drm: convert drivers to use of_graph_get_remote_node
Date: Mon, 13 Feb 2017 10:59:50 +0900 [thread overview]
Message-ID: <0de1f9be-f095-eb0e-7f5d-eeb32c8167e5@samsung.com> (raw)
In-Reply-To: <20170209190558.4784-5-robh@kernel.org>
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_mic.c b/drivers/gpu/drm/exynos/exynos_drm_mic.c
> index a0def0be6d65..93ebb12133e1 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_mic.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_mic.c
> @@ -228,29 +228,6 @@ static void mic_set_reg_on(struct exynos_mic *mic, bool enable)
> writel(reg, mic->reg + MIC_OP);
> }
>
> -static struct device_node *get_remote_node(struct device_node *from, int reg)
> -{
> - struct device_node *endpoint = NULL, *remote_node = NULL;
> -
> - endpoint = of_graph_get_endpoint_by_regs(from, reg, -1);
> - if (!endpoint) {
> - DRM_ERROR("mic: Failed to find remote port from %s",
> - from->full_name);
> - goto exit;
> - }
> -
> - remote_node = of_graph_get_remote_port_parent(endpoint);
> - if (!remote_node) {
> - DRM_ERROR("mic: Failed to find remote port parent from %s",
> - from->full_name);
> - goto exit;
> - }
> -
> -exit:
> - of_node_put(endpoint);
> - return remote_node;
> -}
> -
> static int parse_dt(struct exynos_mic *mic)
> {
> int ret = 0, i, j;
> @@ -262,7 +239,7 @@ static int parse_dt(struct exynos_mic *mic)
> * The first node must be for decon and the second one must be for dsi.
> */
> for (i = 0, j = 0; i < NUM_ENDPOINTS; i++) {
> - remote_node = get_remote_node(mic->dev->of_node, i);
> + remote_node = of_graph_get_remote_node(mic->dev->of_node, i, 0);
> if (!remote_node) {
> ret = -EPIPE;
> goto exit;
> @@ -279,7 +256,7 @@ static int parse_dt(struct exynos_mic *mic)
> break;
> case ENDPOINT_DSI_NODE:
Dear Rob,
I have tested this patch, rebase these patches on samsung soc tree[1]
and drm exynos tree[2]. But 4/6 patch can not be applied. Because
there is a conflict with the already merged [3] patch.
Best Regards,
Hoegeun
[1] https://git.kernel.org/cgit/linux/kernel/git/krzk/linux.git/
(for-next branch)
[2] https://git.kernel.org/cgit/linux/kernel/git/daeinki/drm-exynos.git/
(exynos_drm_next branch)
[3] drm/exynos: mic: Fix parse_dt function (cc2b0225)
> /* panel node */
> - remote_node = get_remote_node(remote_node, 1);
> + remote_node = of_graph_get_remote_node(remote_node, 1, 0);
> if (!remote_node) {
> ret = -EPIPE;
> goto exit;
> diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
> index ebd5f4fe4c23..18d6570e057d 100644
> --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
> +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
> @@ -247,34 +247,6 @@ static const struct component_master_ops kirin_drm_ops = {
> .unbind = kirin_drm_unbind,
> };
>
>
next prev parent reply other threads:[~2017-02-13 2:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-09 19:05 [PATCH v2 0/6] DRM OF graph clean-up Rob Herring
2017-02-09 19:05 ` [PATCH v2 1/6] of: introduce of_graph_get_remote_node Rob Herring
2017-02-09 19:05 ` [PATCH v2 2/6] drm: make of_drm_find_panel also depend on CONFIG_DRM_PANEL Rob Herring
2017-02-09 19:05 ` [PATCH v2 3/6] drm: of: introduce drm_of_find_panel_or_bridge Rob Herring
2017-02-13 4:47 ` Archit Taneja
2017-02-14 1:25 ` Rob Herring
2017-02-09 19:05 ` [PATCH v2 4/6] drm: convert drivers to use of_graph_get_remote_node Rob Herring
2017-02-13 1:59 ` Hoegeun Kwon [this message]
2017-02-13 3:42 ` Archit Taneja
2017-02-20 18:00 ` Jyri Sarha
2017-02-09 19:05 ` [PATCH v2 5/6] drm: convert drivers to use drm_of_find_panel_or_bridge Rob Herring
2017-02-13 4:57 ` Archit Taneja
2017-02-13 7:47 ` Boris Brezillon
2017-02-14 1:16 ` Rob Herring
2017-02-09 19:05 ` [PATCH v2 6/6] drm: omap: use common OF graph helpers Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0de1f9be-f095-eb0e-7f5d-eeb32c8167e5@samsung.com \
--to=hoegeun.kwon@samsung.com \
--cc=airlied@linux.ie \
--cc=alison.wang@freescale.com \
--cc=carlo@caione.org \
--cc=daniel.vetter@intel.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=frowand.list@gmail.com \
--cc=javier@osg.samsung.com \
--cc=jingoohan1@gmail.com \
--cc=jsarha@ti.com \
--cc=kgene@kernel.org \
--cc=khilman@baylibre.com \
--cc=kong.kongxinwei@hisilicon.com \
--cc=krzk@kernel.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=liviu.dudau@arm.com \
--cc=malidp@foss.arm.com \
--cc=marex@denx.de \
--cc=matthias.bgg@gmail.com \
--cc=maxime.ripard@free-electrons.com \
--cc=narmstrong@baylibre.com \
--cc=puck.chen@hisilicon.com \
--cc=rmk+kernel@armlinux.org.uk \
--cc=robh@kernel.org \
--cc=seanpaul@chromium.org \
--cc=sw0312.kim@samsung.com \
--cc=tomi.valkeinen@ti.com \
--cc=wens@csie.org \
--cc=z.liuxinliang@hisilicon.com \
--cc=zourongrong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®