From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754394AbcBVP5o (ORCPT ); Mon, 22 Feb 2016 10:57:44 -0500 Received: from foss.arm.com ([217.140.101.70]:58377 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752767AbcBVP5n (ORCPT ); Mon, 22 Feb 2016 10:57:43 -0500 Date: Mon, 22 Feb 2016 15:57:40 +0000 From: Liviu Dudau To: Russell King - ARM Linux Cc: Mark Yao , Heiko =?utf-8?Q?St=C3=BCbner?= , Philipp Zabel , Daniel Vetter , David Airlie , Eric Anholt , linux-rockchip , LAKML , dri-devel , LKML Subject: Re: [PATCH v2 1/2] drm: Improve drm_of_component_probe() to correctly handle ports and remote ports. Message-ID: <20160222155740.GU1123@e106497-lin.cambridge.arm.com> References: <1448029325-14602-1-git-send-email-Liviu.Dudau@arm.com> <1448029325-14602-2-git-send-email-Liviu.Dudau@arm.com> <20160222115147.GR1123@e106497-lin.cambridge.arm.com> <20160222155128.GE19428@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160222155128.GE19428@n2100.arm.linux.org.uk> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2016 at 03:51:29PM +0000, Russell King - ARM Linux wrote: > On Mon, Feb 22, 2016 at 11:51:47AM +0000, Liviu Dudau wrote: > > On Fri, Nov 20, 2015 at 02:22:04PM +0000, Liviu Dudau wrote: > > > Rockchip DRM driver cannot use the same compare_of() function to > > > match ports and remote ports (aka encoders) as their OF sub-trees > > > look different. Add a second compare function to be used when encoders > > > are added to the component framework and patch the existing users of > > > the function accordingly. > > > > > > Signed-off-by: Liviu Dudau > > > > Russell, > > > > Resurecting this old patch from around Christmas time (bad time for patch > > review). > > > > Are you happy enough with this version to re-issue the Ack or do you think > > I still need to work on it? > > What I'd like to see is the patch reworked, because: > > > > + component_match_add(dev, &match, compare_port, port); > > > + /* > > > + * component_match_add keeps a reference to the port > > > + * variable, so we need to keep the reference count > > > + * increment from of_parse_phandle() > > > + */ > ... > > > + component_match_add(dev, &match, compare_encoder, remote); > > > + /* > > > + * component_match_add keeps a reference to the port > > > + * variable, so we need to keep the reference count > > > + * increment from of_graph_get_remote_port_parent() > > > + */ > > This problem no longer exists. Fair enough, I will send a v3 version. Thanks, Liviu > > -- > RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/ > FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up > according to speedtest.net. > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯