From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752821AbcEJOQv (ORCPT ); Tue, 10 May 2016 10:16:51 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:37320 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751448AbcEJOQs (ORCPT ); Tue, 10 May 2016 10:16:48 -0400 Date: Tue, 10 May 2016 15:16:58 +0100 From: Lee Jones To: Bjorn Andersson Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, maxime.coquelin@st.com, ohad@wizery.com, linux-remoteproc@vger.kernel.org, Ludovic Barre Subject: Re: [PATCH 2/5] remoteproc: core: Add rproc OF look-up functions Message-ID: <20160510141658.GP19473@dell> References: <1462454983-13168-1-git-send-email-lee.jones@linaro.org> <1462454983-13168-3-git-send-email-lee.jones@linaro.org> <20160506184842.GE1256@tuxbot> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160506184842.GE1256@tuxbot> 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 Fri, 06 May 2016, Bjorn Andersson wrote: > On Thu 05 May 06:29 PDT 2016, Lee Jones wrote: > > > - of_rproc_byindex(): look-up and obtain a reference to a rproc > > using the DT phandle "rprocs" and a index. > > > > - of_rproc_byname(): lookup and obtain a reference to a rproc > > using the DT phandle "rprocs" and "rproc-names". > > > > Signed-off-by: Ludovic Barre > > Signed-off-by: Lee Jones > > --- > > I like the idea of having these helpers, but we already have > rproc_get_by_phandle() so these helpers should be built upon that rather > than adding the additional list. Since this is a framework consideration, don't you think it would be better to standardise the phandle name? This is common practice when coding at a subsystem level. Some in use examples include; "clocks", "power-domains", "mboxes", "dmas", "phys", "resets", "gpios", etc. Considering the aforementioned examples, I figured "rprocs" would be suitable. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog