mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 22:23:05 +00:00

FW_CS_DSP gets enabled if KUNIT is enabled. The test should rather
depend on if the feature is enabled. Fix this by moving FW_CS_DSP to the
depends on clause.
Fixes: dd0b6b1f29
("firmware: cs_dsp: Add KUnit testing of bin file download")
Signed-off-by: Nico Pache <npache@redhat.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20250411123608.1676462-4-rf@opensource.cirrus.com
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
21 lines
533 B
Plaintext
21 lines
533 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
config FW_CS_DSP
|
|
tristate
|
|
default n
|
|
|
|
config FW_CS_DSP_KUNIT_TEST_UTILS
|
|
tristate
|
|
|
|
config FW_CS_DSP_KUNIT_TEST
|
|
tristate "KUnit tests for Cirrus Logic cs_dsp" if !KUNIT_ALL_TESTS
|
|
depends on KUNIT && REGMAP && FW_CS_DSP
|
|
default KUNIT_ALL_TESTS
|
|
select FW_CS_DSP_KUNIT_TEST_UTILS
|
|
help
|
|
This builds KUnit tests for cs_dsp.
|
|
For more information on KUnit and unit tests in general,
|
|
please refer to the KUnit documentation in
|
|
Documentation/dev-tools/kunit/.
|
|
If in doubt, say "N".
|