[PATCH v2 00/11] firmware: cleanup for v4.17

From: Luis R. Rodriguez
Date: Fri Feb 23 2018 - 21:46:23 EST


Greg,

this v2 series addresses some corner case build issues. One was spotted
late by 0-day after I used Linus' tree for build tests rather than
linux-next, and another I found on my own. 0-day covers more ground
with testing if you use Linus' tree.

The one cought by 0-day was in that in the case when the firmware loader
is modular (actually rare these days) the new sysctl table for the
configuration of the fallback interface needs to be built in as well, as
otherwise the proc sysctl interface can't access the configuration. The
other build issue was a misplaced "static" on a fallback call.

0-day now gives its blessings for both, on linux-next and on Linus' tree.
Questions, feedback, rants all equally welcomed.

Luis

Luis R. Rodriguez (11):
test_firmware: enable custom fallback testing on limited kernel
configs
test_firmware: replace syfs fallback check with kconfig_has helper
firmware: enable to split firmware_class into separate target files
firmware: simplify CONFIG_FW_LOADER_USER_HELPER_FALLBACK further
firmware: use helpers for setting up a temporary cache timeout
firmware: move loading timeout under struct firmware_fallback_config
firmware: split firmware fallback functionality into its own file
firmware: enable run time change of forcing fallback loader
firmware: enable to force disable the fallback mechanism at run time
test_firmware: add a library for shared helpers
test_firmware: test three firmware kernel configs using a proc knob

drivers/base/Makefile | 5 +-
drivers/base/firmware_fallback.c | 667 ++++++++++++++++++
drivers/base/firmware_fallback.h | 67 ++
drivers/base/firmware_fallback_table.c | 55 ++
.../base/{firmware_class.c => firmware_loader.c} | 765 +--------------------
drivers/base/firmware_loader.h | 115 ++++
kernel/sysctl.c | 11 +
tools/testing/selftests/firmware/Makefile | 2 +-
tools/testing/selftests/firmware/config | 4 +
tools/testing/selftests/firmware/fw_fallback.sh | 39 +-
tools/testing/selftests/firmware/fw_filesystem.sh | 61 +-
tools/testing/selftests/firmware/fw_lib.sh | 173 +++++
tools/testing/selftests/firmware/fw_run_tests.sh | 67 ++
13 files changed, 1193 insertions(+), 838 deletions(-)
create mode 100644 drivers/base/firmware_fallback.c
create mode 100644 drivers/base/firmware_fallback.h
create mode 100644 drivers/base/firmware_fallback_table.c
rename drivers/base/{firmware_class.c => firmware_loader.c} (61%)
create mode 100644 drivers/base/firmware_loader.h
create mode 100755 tools/testing/selftests/firmware/fw_lib.sh
create mode 100755 tools/testing/selftests/firmware/fw_run_tests.sh

--
2.16.2