Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752735AbeACUTv (ORCPT + 1 other); Wed, 3 Jan 2018 15:19:51 -0500 Received: from mail-pg0-f42.google.com ([74.125.83.42]:36068 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752695AbeACUTo (ORCPT ); Wed, 3 Jan 2018 15:19:44 -0500 X-Google-Smtp-Source: ACJfBoshqwO6s3QcsOL1/68xfpXuUp6QvVBbLXnWI1L5nONRyMprpRnadKwrhY95BiU6DcFu+VyvMg== Date: Wed, 3 Jan 2018 12:19:40 -0800 From: Bjorn Andersson To: Loic PALLARDY Cc: Ohad Ben-Cohen , "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , "linux-soc@vger.kernel.org" , Suman Anna , Avaneesh Kumar Dwivedi Subject: Re: [PATCH v2 2/4] remoteproc: Rename "load_rsc_table" to "parse_fw" Message-ID: <20180103201940.GI12655@minitux> References: <20171226203832.14928-1-bjorn.andersson@linaro.org> <20171226203832.14928-3-bjorn.andersson@linaro.org> <283cde2ddefd472eaeaa66f326df1283@SFHDAG7NODE2.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed 03 Jan 05:15 PST 2018, Loic PALLARDY wrote: > > -----Original Message----- > > From: linux-remoteproc-owner@vger.kernel.org [mailto:linux-remoteproc- > > owner@vger.kernel.org] On Behalf Of Loic PALLARDY > > Sent: Wednesday, January 03, 2018 11:27 AM > > To: Bjorn Andersson ; Ohad Ben-Cohen > > > > Cc: linux-remoteproc@vger.kernel.org; linux-kernel@vger.kernel.org; linux- > > arm-msm@vger.kernel.org; linux-soc@vger.kernel.org; Suman Anna > anna@ti.com>; Avaneesh Kumar Dwivedi > > Subject: RE: [PATCH v2 2/4] remoteproc: Rename "load_rsc_table" to > > "parse_fw" > > > -----Original Message----- > > > From: linux-remoteproc-owner@vger.kernel.org [mailto:linux- > > remoteproc- > > > owner@vger.kernel.org] On Behalf Of Bjorn Andersson [..] > > > - /* load resource table */ > > > - ret = rproc_load_rsc_table(rproc, fw); > > > + /* parse firmware resources */ > > > + ret = rproc_parse_fw(rproc, fw); > > Hi Bjorn, > > > > I think it will be good to keep resource (aka rsc) in function name. only > > "parse_fw" is not enough explicit and we don't know why rproc should parse > > firmware. > > > > Regards, > > Loic > Forgot my previous remark, better understanding thanks to the rest of > the series. > Anyway, will be nice to have a comment here as it is not only parsing > the firmware, you collect some information like copy of the resource > table, list of elf segment to dump... > I think it is important to be clear about resource table management as > it is a key element of the remoteproc core, where it is loaded, where > it is copied back in memory... I didn't manage to come up with a better name, but adding a comment to capture this makes a lot of sense. I will respin this patch! Thanks for reviewing this! Regards, Bjorn