mirror-linux/drivers/firmware/cirrus
Geert Uytterhoeven eb5c79828c
firmware: cs_dsp: FW_CS_DSP_KUNIT_TEST should not select REGMAP
Enabling a (modular) test should not silently enable additional kernel
functionality, as that may increase the attack vector of a product.

Fix this by making FW_CS_DSP_KUNIT_TEST (and FW_CS_DSP_KUNIT_TEST_UTILS)
depend on REGMAP instead of selecting it.

After this, one can safely enable CONFIG_KUNIT_ALL_TESTS=m to build
modules for all appropriate tests for ones system, without pulling in
extra unwanted functionality, while still allowing a tester to manually
enable REGMAP_BUILD and this test suite on a system where REGMAP is not
enabled by default.

Fixes: dd0b6b1f29 ("firmware: cs_dsp: Add KUnit testing of bin file download")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://patch.msgid.link/73c81ac85e21f1c5a75b7628d90cbb0e1b4ed0fa.1737833376.git.geert@linux-m68k.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-01-27 13:35:34 +00:00
..
test firmware: cs_dsp: Delete redundant assignments in cs_dsp_test_bin.c 2024-12-19 16:39:38 +00:00
Kconfig firmware: cs_dsp: FW_CS_DSP_KUNIT_TEST should not select REGMAP 2025-01-27 13:35:34 +00:00
Makefile firmware: cs_dsp: Add mock regmap for KUnit testing 2024-12-13 13:14:37 +00:00
cs_dsp.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00