lkml.org 
[lkml]   [2020]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 3/7] test_firmware: add partial read support for request_firmware_into_buf
On Thu, May 07, 2020 at 05:27:35PM -0700, Scott Branden wrote:
> Add additional hooks to test_firmware to pass in support
> for partial file read using request_firmware_into_buf.
> buf_size: size of buffer to request firmware into
> partial: indicates that a partial file request is being made
> file_offset: to indicate offset into file to request
>
> Signed-off-by: Scott Branden <scott.branden@broadcom.com>
> ---
> lib/test_firmware.c | 146 +++++++++++++++++++++++++++++++++++++++++---
> 1 file changed, 136 insertions(+), 10 deletions(-)
>
> diff --git a/lib/test_firmware.c b/lib/test_firmware.c
> index 55176b0a8318..d1d2b48ed40e 100644
> --- a/lib/test_firmware.c
> +++ b/lib/test_firmware.c
> @@ -645,18 +762,24 @@ static int test_fw_run_batch_request(void *data)
>
> if (test_fw_config->into_buf) {
> void *test_buf;
> + unsigned int pread_flags;

Same thing here.

Luis

\
 
 \ /
  Last update: 2020-05-13 02:35    [W:0.233 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site