From mboxrd@z Thu Jan 1 00:00:00 1970 From: lee.jones@linaro.org (Lee Jones) Date: Thu, 4 Aug 2016 15:00:58 +0100 Subject: [PATCH 4/9] remoteproc: core: New API to add new resources to the resource table In-Reply-To: <20160804092153.23032-5-lee.jones@linaro.org> References: <20160804092153.23032-1-lee.jones@linaro.org> <20160804092153.23032-5-lee.jones@linaro.org> Message-ID: <20160804140058.GB5154@x1> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, 04 Aug 2016, Lee Jones wrote: > In order to amend or add a new resource table entry we need a method > for a platform-specific to submit them. rproc_request_resource() is a > new public API which provides this functionality. > > It is to be called between rproc_alloc() and rproc_add(). > > Signed-off-by: Lee Jones > --- > drivers/remoteproc/remoteproc_core.c | 125 +++++++++++++++++++++++++++++++++++ > include/linux/remoteproc.h | 21 ++++++ > 2 files changed, 146 insertions(+) > > diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c > index 4914482..0abfa2b 100644 > --- a/drivers/remoteproc/remoteproc_core.c > +++ b/drivers/remoteproc/remoteproc_core.c > @@ -793,6 +793,130 @@ static void rproc_resource_cleanup(struct rproc *rproc) > } > } > > +static void rproc_dump_resource_table(struct rproc *rproc, > + struct resource_table *table, int size) > +{ Ah! Looks like I mistakenly squashed two patches together. I won't re-send, but please treat these two functions as separate patches. I will fix this during v2, once I've received some feedback. [...] -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog