summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/Kconfig
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2020-08-24 11:46:52 +0200
committerMika Westerberg <mika.westerberg@linux.intel.com>2020-09-16 13:57:46 +0200
commit2c6ea4e2cefe2e86af782a5b8e1070f4d434f2f2 (patch)
tree7120f7cb51581c70ed207203cccb28145740a666 /drivers/thunderbolt/Kconfig
parentthunderbolt: Only stop control channel when entering freeze (diff)
downloadlinux-2c6ea4e2cefe2e86af782a5b8e1070f4d434f2f2.tar.xz
linux-2c6ea4e2cefe2e86af782a5b8e1070f4d434f2f2.zip
thunderbolt: Allow KUnit tests to be built also when CONFIG_USB4=m
This adds a bit more build coverage for the tests even though these are not expected to be enabled by normal users and distros. In order to make this working we need to open-code kunit_test_suite() and call the relevant functions directly in the driver init/exit hook. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/Kconfig')
-rw-r--r--drivers/thunderbolt/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thunderbolt/Kconfig b/drivers/thunderbolt/Kconfig
index 2257c22f8ab3..afa3551633aa 100644
--- a/drivers/thunderbolt/Kconfig
+++ b/drivers/thunderbolt/Kconfig
@@ -28,5 +28,5 @@ config USB4_DEBUGFS_WRITE
config USB4_KUNIT_TEST
bool "KUnit tests"
+ depends on USB4
depends on KUNIT=y
- depends on USB4=y