mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:46:16 +00:00
e54fad8044
If CONFIG_SLIM_QCOM_NGD_CTRL=y, CONFIG_QCOM_RPROC_COMMON=m, COMPILE_TEST=y,
bulding fails:
drivers/slimbus/qcom-ngd-ctrl.o: In function `qcom_slim_ngd_ctrl_probe':
qcom-ngd-ctrl.c:(.text+0x330): undefined reference to `qcom_register_ssr_notifier'
qcom-ngd-ctrl.c:(.text+0x5fc): undefined reference to `qcom_unregister_ssr_notifier'
drivers/slimbus/qcom-ngd-ctrl.o: In function `qcom_slim_ngd_remove':
qcom-ngd-ctrl.c:(.text+0x90c): undefined reference to `qcom_unregister_ssr_notifier'
Make SLIM_QCOM_NGD_CTRL depends on QCOM_RPROC_COMMON || (COMPILE_TEST && !QCOM_RPROC_COMMON) to fix this.
Fixes: e291691c69
("slimbus: qcom-ngd-ctrl: allow compile testing without QCOM_RPROC_COMMON")
Cc: stable <stable@kernel.org>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221027095904.3388959-1-zhengbin13@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# SLIMbus driver configuration
|
|
#
|
|
menuconfig SLIMBUS
|
|
tristate "SLIMbus support"
|
|
help
|
|
SLIMbus is standard interface between System-on-Chip and audio codec,
|
|
and other peripheral components in typical embedded systems.
|
|
|
|
If unsure, choose N.
|
|
|
|
if SLIMBUS
|
|
|
|
# SLIMbus controllers
|
|
config SLIM_QCOM_CTRL
|
|
tristate "Qualcomm SLIMbus Manager Component"
|
|
depends on HAS_IOMEM
|
|
help
|
|
Select driver if Qualcomm's SLIMbus Manager Component is
|
|
programmed using Linux kernel.
|
|
|
|
config SLIM_QCOM_NGD_CTRL
|
|
tristate "Qualcomm SLIMbus Satellite Non-Generic Device Component"
|
|
depends on HAS_IOMEM && DMA_ENGINE && NET
|
|
depends on QCOM_RPROC_COMMON || (COMPILE_TEST && !QCOM_RPROC_COMMON)
|
|
depends on ARCH_QCOM || COMPILE_TEST
|
|
select QCOM_QMI_HELPERS
|
|
select QCOM_PDR_HELPERS
|
|
help
|
|
Select driver if Qualcomm's SLIMbus Satellite Non-Generic Device
|
|
Component is programmed using Linux kernel.
|
|
This is light-weight slimbus controller driver responsible for
|
|
communicating with slave HW directly over the bus using messaging
|
|
interface, and communicating with master component residing on ADSP
|
|
for bandwidth and data-channel management.
|
|
endif
|