Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752070AbaBKRl3 (ORCPT ); Tue, 11 Feb 2014 12:41:29 -0500 Received: from mailout3.w2.samsung.com ([211.189.100.13]:11483 "EHLO usmailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751071AbaBKRl1 convert rfc822-to-8bit (ORCPT ); Tue, 11 Feb 2014 12:41:27 -0500 X-AuditID: cbfec372-b7fa96d000006a7b-25-52fa60c6c3e6 Date: Wed, 12 Feb 2014 02:41:19 +0900 From: Mauro Carvalho Chehab To: Sylwester Nawrocki Cc: Philipp Zabel , Laurent Pinchart , Russell King - ARM Linux , Rob Herring , Grant Likely , Rob Herring , Tomi Valkeinen , Kyungmin Park , "linux-kernel@vger.kernel.org" , "linux-media@vger.kernel.org" , "devicetree@vger.kernel.org" , Philipp Zabel , Guennadi Liakhovetski Subject: Re: [RFC PATCH] [media]: of: move graph helpers from drivers/media/v4l2-core to drivers/of Message-id: <20140212024119.7fc96f30.m.chehab@samsung.com> In-reply-to: <52FA5C5A.1090008@samsung.com> References: <1392119105-25298-1-git-send-email-p.zabel@pengutronix.de> <20140211145248.GI26684@n2100.arm.linux.org.uk> <8648675.AIXYyYlgXy@avalon> <1392136617.6943.33.camel@pizza.hi.pengutronix.de> <52FA5C5A.1090008@samsung.com> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 8BIT X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsVy+t/hYN1jCb+CDL4/ZraYf+Qcq8X7jfOY LA782cFocbbpDbtF58Ql7BaXd81hs+jZsJXV4vZlXou7906wWGydd47RonXvEXaL79++sVkc ftPOarF+/i02Bz6PluYeNo+ds+6ye3z4GOcxu2Mmq8emVZ1sHneu7WHz6P9r4NG3ZRWjx/Eb 25k8Pm+SC+CK4rJJSc3JLEst0rdL4Mpo2zaLvWCdcMWil01sDYz7+bsYOTkkBEwknq9sY4Ww xSQu3FvP1sXIxSEksIRRYuOEHcwQTgOTxO/tX8GqWARUJY5u7WMHsdkEjCReNbaAxUUE9CWW rLoI1s0s8INF4vT302wgCWGBVIm1h28DFXFw8ApYSax/6Q8S5hTQlrh08QkLxIKNTBJXeqcy QZzhJPHq9WQwm1dAUOLH5HssIDazgJbE5m1NrBC2tsSTdxdYJzAKzEJSNgtJ2SwkZQsYmVcx ipYWJxcUJ6XnGuoVJ+YWl+al6yXn525ihMRW0Q7GZxusDjEKcDAq8fAyeP4KEmJNLCuuzD3E KMHBrCTCq6YGFOJNSaysSi3Kjy8qzUktPsTIxMEp1cC472u1qf0Kx76g2LSLe5f7Kk6aaVD0 lzP209GDrY1boi2N2dQE7/09PfFVk2TB3o+9vXcs9a7OnXzD/a9UeOyufZPiCna6nBd+lXHW a1Vg/+HOj8InuM71Ok9/F7TtXVOmQHfR0cVPmQ2kOzYf3fdXo9pFjvFnNjuLtSX3Qmb2ZOGL H7a72L5XYinOSDTUYi4qTgQAN78mlIsCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 11 Feb 2014 18:22:34 +0100 Sylwester Nawrocki escreveu: > (adding Guennadi to Cc) > > On 11/02/14 17:36, Philipp Zabel wrote: > > Am Dienstag, den 11.02.2014, 16:23 +0100 schrieb Laurent Pinchart: > >> Hi Russell, > >> > >> On Tuesday 11 February 2014 14:52:48 Russell King - ARM Linux wrote: > >>> On Tue, Feb 11, 2014 at 07:56:33AM -0600, Rob Herring wrote: > >>>> On Tue, Feb 11, 2014 at 5:45 AM, Philipp Zabel wrote: > >>>>> This allows to reuse the same parser code from outside the V4L2 > >>>>> framework, most importantly from display drivers. There have been > >>>>> patches that duplicate the code (and I am going to send one of my own), > >>>>> such as > >>>>> http://lists.freedesktop.org/archives/dri-devel/2013-August/043308.html > >>>>> and others that parse the same binding in a different way: > >>>>> https://www.mail-archive.com/linux-omap@vger.kernel.org/msg100761.html > >>>>> > >>>>> I think that all common video interface parsing helpers should be moved > >>>>> to a single place, outside of the specific subsystems, so that it can > >>>>> be reused by all drivers. > >>>> > >>>> Perhaps that should be done rather than moving to drivers/of now and > >>>> then again to somewhere else. > >>> > >>> Do you have a better suggestion where it should move to? > >>> > >>> drivers/gpu/drm - no, because v4l2 wants to use it > >>> drivers/media/video - no, because DRM drivers want to use it > >>> drivers/video - no, because v4l2 and drm drivers want to use it > >> > >> Just pointing out a missing location (which might be rejected due to similar > >> concerns), there's also drivers/media, which isn't V4L-specific. > > > > Since drivers/Makefile has media/ in obj-y, moving the graph helpers to > > drivers/media should technically work. > > > >>> Maybe drivers/of-graph/ ? Or maybe it's just as good a place to move it > >>> into drivers/of ? > > > > include/media/of_graph.h, > > drivers/media/of_graph.c? > > drivers/media sounds like a good alternative to me. >From my side, I'm ok with putting them at drivers/media. You may add my acked-by for such change: Acked-by: Mauro Carvalho Chehab > I would just remove also v4l2_of_{parse/get}* and update the users > to call of_graph_* directly, there should not be many of them. > > -- > Thanks, > Sylwester > -- Cheers, Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/