Re: [RFC 1/2] firmware class: Add stream_firmware API.

2017-03-27 Thread Li, Yi
hi Luis, On 3/27/2017 2:36 PM, Luis R. Rodriguez wrote: On Thu, Mar 09, 2017 at 06:18:09PM -0600, yi1...@linux.intel.com wrote: From: Yi Li Add function to load firmware in multiple chucks instead of loading the whole big firmware file at once. Signed-off-by: Yi Li --- drivers/base/firm

Re: [RFC 1/2] firmware class: Add stream_firmware API.

2017-03-27 Thread Luis R. Rodriguez
On Thu, Mar 09, 2017 at 06:18:09PM -0600, yi1...@linux.intel.com wrote: > From: Yi Li > > Add function to load firmware in multiple chucks instead of > > loading the whole big firmware file at once. > > Signed-off-by: Yi Li > --- > drivers/base/firmware_class.c | 128 > ++

Re: [RFC 1/2] firmware class: Add stream_firmware API.

2017-03-22 Thread Alan Tull
On Wed, Mar 22, 2017 at 5:05 PM, Li, Yi wrote: > Alan > > > On 3/20/2017 1:34 PM, Alan Tull wrote: >> >> On Mon, Mar 20, 2017 at 1:00 PM, Alan Tull >> wrote: >> +int +stream_firmware(const struct firmware **firmware_p, const char *name, +struct device *device, size_

Re: [RFC 1/2] firmware class: Add stream_firmware API.

2017-03-22 Thread Li, Yi
Alan On 3/20/2017 1:34 PM, Alan Tull wrote: On Mon, Mar 20, 2017 at 1:00 PM, Alan Tull wrote: +int +stream_firmware(const struct firmware **firmware_p, const char *name, +struct device *device, size_t offset, size_t length) +{ + size_t ret; + + /* Need to pin this

Re: [RFC 1/2] firmware class: Add stream_firmware API.

2017-03-20 Thread Alan Tull
On Mon, Mar 20, 2017 at 1:00 PM, Alan Tull wrote: >> +int >> +stream_firmware(const struct firmware **firmware_p, const char *name, >> +struct device *device, size_t offset, size_t length) >> +{ >> + size_t ret; >> + >> + /* Need to pin this module until return */ >> +

Re: [RFC 1/2] firmware class: Add stream_firmware API.

2017-03-20 Thread Alan Tull
On Thu, Mar 9, 2017 at 6:18 PM, wrote: Hi Yi, As FPGA image sizes are increasing, this change can be really helpful. I have one comment below. Alan Tull > From: Yi Li > > Add function to load firmware in multiple chucks instead of > > loading the whole big firmware file at once. > > Signed-o

Re: [RFC 1/2] firmware class: Add stream_firmware API.

2017-03-14 Thread matthew . gerlach
On Tue, 14 Mar 2017, Li, Yi wrote: hi Matthew, Hi Yi, On 3/13/2017 4:09 PM, matthew.gerl...@linux.intel.com wrote: On Fri, 10 Mar 2017, Li, Yi wrote: Hi Matthew Hi Yi, On 3/10/2017 11:44 AM, matthew.gerl...@linux.intel.com wrote: On Thu, 9 Mar 2017, yi1...@linux.intel.com wr

Re: [RFC 1/2] firmware class: Add stream_firmware API.

2017-03-14 Thread Li, Yi
hi Matthew, On 3/13/2017 4:09 PM, matthew.gerl...@linux.intel.com wrote: On Fri, 10 Mar 2017, Li, Yi wrote: Hi Matthew Hi Yi, On 3/10/2017 11:44 AM, matthew.gerl...@linux.intel.com wrote: On Thu, 9 Mar 2017, yi1...@linux.intel.com wrote: From: Yi Li Hi Yi, Just one question

Re: [RFC 1/2] firmware class: Add stream_firmware API.

2017-03-13 Thread matthew . gerlach
On Fri, 10 Mar 2017, Li, Yi wrote: Hi Matthew Hi Yi, On 3/10/2017 11:44 AM, matthew.gerl...@linux.intel.com wrote: On Thu, 9 Mar 2017, yi1...@linux.intel.com wrote: From: Yi Li Hi Yi, Just one question below. Matthew Gerlach Add function to load firmware in multiple chucks

Re: [RFC 1/2] firmware class: Add stream_firmware API.

2017-03-10 Thread Li, Yi
Hi Matthew On 3/10/2017 11:44 AM, matthew.gerl...@linux.intel.com wrote: On Thu, 9 Mar 2017, yi1...@linux.intel.com wrote: From: Yi Li Hi Yi, Just one question below. Matthew Gerlach Add function to load firmware in multiple chucks instead of loading the whole big firmware file at

Re: [RFC 1/2] firmware class: Add stream_firmware API.

2017-03-10 Thread matthew . gerlach
On Thu, 9 Mar 2017, yi1...@linux.intel.com wrote: From: Yi Li Hi Yi, Just one question below. Matthew Gerlach Add function to load firmware in multiple chucks instead of loading the whole big firmware file at once. Signed-off-by: Yi Li --- drivers/base/firmware_class.c | 128 ++

[RFC 1/2] firmware class: Add stream_firmware API.

2017-03-09 Thread yi1 . li
From: Yi Li Add function to load firmware in multiple chucks instead of loading the whole big firmware file at once. Signed-off-by: Yi Li --- drivers/base/firmware_class.c | 128 ++ include/linux/firmware.h | 2 + 2 files changed, 130 insertions(