Skip to content

Enable pre-allocated buffer support for driver_data

[email protected] lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 0 repliesNew

Changes in v2 from the cover letter

- Rebase to Luis R. Rodriguez's 20170501-driver-data-try2 branch
- Move alloc_buf and alloc_buf_size to public driver_data_req_params structure.
- Add self test cases.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2firmware: Enable pre-allocated buffer support in driver_datadrivers/base/firmware_class.c include/linux/driver_data.h+13 -130 replies
2/2test: add pre-allocated buffer to driver_data testerlib/test_driver_data.c tools/testing/selftests/firmware/driver_data.sh+103 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/2] Enable pre-allocated buffer support for driver_data

From: Yi Li <[email protected]>

This series enables the equivalent pre-allocated buffer feature in request_firmware_into_buf to driver_data API, so caller can allocate firmware data buffer and pass to driver_data. This will be used for streaming support of driver_data, which allow caller to manage the size and buffer of firmware streaming.

Changes in v2:

- Rebase to Luis R. Rodriguez's 20170501-driver-data-try2 branch
- Move alloc_buf and alloc_buf_size to public driver_data_req_params structure.
- Add self test cases.

Yi Li (2):
firmware: Enable pre-allocated buffer support in driver_data
test: add pre-allocated buffer to driver_data tester

 drivers/base/firmware_class.c                   | 21 +++-----
 include/linux/driver_data.h                     |  5 ++
 lib/test_driver_data.c                          | 68 ++++++++++++++++++++++++-
 tools/testing/selftests/firmware/driver_data.sh | 36 +++++++++++++
 4 files changed, 116 insertions(+), 14 deletions(-)
Signature · 1 line
2.7.4