RE: [RFCv2 08/11] remoteproc: Refactor function rproc_elf_find_rsc_table

2013-01-15 Thread Sjur BRENDELAND
Hi Ido, > > +static struct elf32_shdr * > > +find_rsc_shdr(struct device *dev, struct elf32_hdr *ehdr) > > { > > - struct elf32_hdr *ehdr; > > struct elf32_shdr *shdr; > > + int i; > > const char *name_table; > > - struct device *dev = >dev; > > struct resource_table *table =

RE: [RFCv2 08/11] remoteproc: Refactor function rproc_elf_find_rsc_table

2013-01-15 Thread Sjur BRENDELAND
Hi Ido, +static struct elf32_shdr * +find_rsc_shdr(struct device *dev, struct elf32_hdr *ehdr) { - struct elf32_hdr *ehdr; struct elf32_shdr *shdr; + int i; const char *name_table; - struct device *dev = rproc-dev; struct resource_table *table = NULL; -

Re: [RFCv2 08/11] remoteproc: Refactor function rproc_elf_find_rsc_table

2012-12-20 Thread Ido Yariv
Hi Sjur, On Fri, Dec 14, 2012 at 05:06:57PM +0100, Sjur Brændeland wrote: > Refatcor rproc_elf_find_rsc_table and split out the scanning Small typo there. > for the section header named resource table. This is done to > prepare for loading firmware once. > > Signed-off-by: Sjur Brændeland

Re: [RFCv2 08/11] remoteproc: Refactor function rproc_elf_find_rsc_table

2012-12-20 Thread Ido Yariv
Hi Sjur, On Fri, Dec 14, 2012 at 05:06:57PM +0100, Sjur Brændeland wrote: Refatcor rproc_elf_find_rsc_table and split out the scanning Small typo there. for the section header named resource table. This is done to prepare for loading firmware once. Signed-off-by: Sjur Brændeland

[RFCv2 08/11] remoteproc: Refactor function rproc_elf_find_rsc_table

2012-12-14 Thread Sjur Brændeland
Refatcor rproc_elf_find_rsc_table and split out the scanning for the section header named resource table. This is done to prepare for loading firmware once. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_elf_loader.c | 83 +--- 1 files changed, 51

[RFCv2 08/11] remoteproc: Refactor function rproc_elf_find_rsc_table

2012-12-14 Thread Sjur Brændeland
Refatcor rproc_elf_find_rsc_table and split out the scanning for the section header named resource table. This is done to prepare for loading firmware once. Signed-off-by: Sjur Brændeland sjur.brandel...@stericsson.com --- drivers/remoteproc/remoteproc_elf_loader.c | 83