From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932217AbdJYIFJ (ORCPT ); Wed, 25 Oct 2017 04:05:09 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:46998 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751637AbdJYIEu (ORCPT ); Wed, 25 Oct 2017 04:04:50 -0400 X-Google-Smtp-Source: ABhQp+TGJuTpY9M9avDHkF9x/uXi7oyTQuJ1jUTo8O42gcNsB30EoxgKCXYNG4AUQbrvoCpQqX4Fuw== Date: Wed, 25 Oct 2017 04:04:48 -0400 From: Sean Paul To: Nickey Yang Cc: mark.yao@rock-chips.com, robh+dt@kernel.org, heiko@sntech.de, mark.rutland@arm.com, airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, seanpaul@chromium.org, briannorris@chromium.org, hl@rock-chips.com, zyw@rock-chips.comg, xbl@rock-chips.com, Archit Taneja Subject: Re: [PATCH v3 4/6] drm/rockchip/dsi: add dual mipi channel support Message-ID: <20171025080448.pa465q5jofxhqdn4@art_vandelay> References: <1508903463-7254-1-git-send-email-nickey.yang@rock-chips.com> <1508903463-7254-4-git-send-email-nickey.yang@rock-chips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1508903463-7254-4-git-send-email-nickey.yang@rock-chips.com> User-Agent: NeoMutt/20170306-97-7656f1-dirty (1.8.0) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 25, 2017 at 11:51:01AM +0800, Nickey Yang wrote: > This patch add dual mipi channel support: > 1.add definition of dsi1 register and grf operation. > 2.dsi0 and dsi1 will work in master and slave mode > when driving dual mipi panel. > > Signed-off-by: Nickey Yang > --- In the last revision, I asked you to provide changelog between revisions, *please* do this. You received review on the last version and a bunch of the feedback hasn't been taken into account with no explanation as to why. Please go back to the last version, read the reviews that people were generous enough to give and either fix the code or explain why you're not. > drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 377 ++++++++++++++++++++-------- > drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 + > drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 + > drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 3 + > drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 1 + > 5 files changed, 279 insertions(+), 105 deletions(-) > > diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c > index 589b420..25e7b77 100644 > --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c > +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c > +static int rockchip_dsi_dual_channel_probe(struct dw_mipi_dsi *dsi) > +{ > + struct device_node *np; > + struct platform_device *secondary; > + > + np = of_parse_phandle(dsi->dev->of_node, "rockchip,dual-channel", 0); > + if (np) { > + secondary = of_find_device_by_node(np); > + dsi->slave = platform_get_drvdata(secondary); > + of_node_put(np); > + > + if (!dsi->slave) > + return -EPROBE_DEFER; Archit asked you not to do this in the previous review. > + > + dsi->slave->master = dsi; > + } > + > + return 0; > +} > -- > 1.9.1 > -- Sean Paul, Software Engineer, Google / Chromium OS