Skip to content

Commit 13678f3

Browse files
rddunlappH5
authored andcommitted
reset: ti-sci: honor TI_SCI_PROTOCOL setting when not COMPILE_TEST
There is a build error when COMPILE_TEST=y, TI_SCI_PROTOCOL=m, and RESET_TI_SCI=y: drivers/reset/reset-ti-sci.o: in function `ti_sci_reset_probe': reset-ti-sci.c:(.text+0x22c): undefined reference to `devm_ti_sci_get_handle' Fix this by making RESET_TI_SCI honor the Kconfig setting of TI_SCI_PROTOCOL when COMPILE_TEST is not set. When COMPILE_TEST is set, TI_SCI_PROTOCOL must be disabled (=n). Fixes: a6af504 ("reset: ti-sci: Allow building under COMPILE_TEST") Signed-off-by: Randy Dunlap <[email protected]> Reported-by: kernel test robot <[email protected]> Cc: Nishanth Menon <[email protected]> Cc: Tero Kristo <[email protected]> Cc: Santosh Shilimkar <[email protected]> Cc: [email protected] Cc: Philipp Zabel <[email protected]> Reviewed-by: Nishanth Menon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Philipp Zabel <[email protected]>
1 parent 1b929c0 commit 13678f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/reset/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ config RESET_SUNXI
257257

258258
config RESET_TI_SCI
259259
tristate "TI System Control Interface (TI-SCI) reset driver"
260-
depends on TI_SCI_PROTOCOL || COMPILE_TEST
260+
depends on TI_SCI_PROTOCOL || (COMPILE_TEST && TI_SCI_PROTOCOL=n)
261261
help
262262
This enables the reset driver support over TI System Control Interface
263263
available on some new TI's SoCs. If you wish to use reset resources

0 commit comments

Comments
 (0)