mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
The driver fails to build when PCI is disabled:
drivers/power/sequencing/pwrseq-pcie-m2.c: In function 'pwrseq_pcie_m2_register_notifier':
drivers/power/sequencing/pwrseq-pcie-m2.c:368:54: error: 'pci_bus_type' undeclared (first use in this function); did you mean 'pci_pcie_type'?
368 | ret = bus_register_notifier(&pci_bus_type, &ctx->nb);
| ^~~~~~~~~~~~
| pci_pcie_type
Similarly, when CONFIG_OF is disabled:
drivers/power/sequencing/pwrseq-pcie-m2.c: In function 'pwrseq_m2_pcie_create_bt_node':
drivers/power/sequencing/pwrseq-pcie-m2.c:191:9: error: implicit declaration of function 'of_changeset_init' [-Wimplicit-function-declaration]
191 | of_changeset_init(ctx->ocs);
| ^~~~~~~~~~~~~~~~~
Make both dependencies unconditional to prevent compile-testing
in either configuration.
Fixes: 3f736aecbd ("power: sequencing: pcie-m2: Create serdev device for WCN7850 bluetooth")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://patch.msgid.link/20260401091847.305294-1-arnd@kernel.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
menuconfig POWER_SEQUENCING
|
|
tristate "Power Sequencing support"
|
|
help
|
|
Say Y here to enable the Power Sequencing subsystem.
|
|
|
|
This subsystem is designed to control power to devices that share
|
|
complex resources and/or require specific power sequences to be run
|
|
during power-up.
|
|
|
|
If unsure, say no.
|
|
|
|
if POWER_SEQUENCING
|
|
|
|
config POWER_SEQUENCING_QCOM_WCN
|
|
tristate "Qualcomm WCN family PMU driver"
|
|
default m if ARCH_QCOM
|
|
depends on OF || COMPILE_TEST
|
|
help
|
|
Say Y here to enable the power sequencing driver for Qualcomm
|
|
WCN Bluetooth/WLAN chipsets.
|
|
|
|
Typically, a package from the Qualcomm WCN family contains the BT
|
|
and WLAN modules whose power is controlled by the PMU module. As the
|
|
former two share the power-up sequence which is executed by the PMU,
|
|
this driver is needed for correct power control or else we'd risk not
|
|
respecting the required delays between enabling Bluetooth and WLAN.
|
|
|
|
config POWER_SEQUENCING_TH1520_GPU
|
|
tristate "T-HEAD TH1520 GPU power sequencing driver"
|
|
depends on (ARCH_THEAD && AUXILIARY_BUS) || COMPILE_TEST
|
|
help
|
|
Say Y here to enable the power sequencing driver for the TH1520 SoC
|
|
GPU. This driver handles the complex clock and reset sequence
|
|
required to power on the Imagination BXM GPU on this platform.
|
|
|
|
config POWER_SEQUENCING_PCIE_M2
|
|
tristate "PCIe M.2 connector power sequencing driver"
|
|
depends on OF
|
|
depends on PCI
|
|
select OF_DYNAMIC
|
|
help
|
|
Say Y here to enable the power sequencing driver for PCIe M.2
|
|
connectors. This driver handles the power sequencing for the M.2
|
|
connectors exposing multiple interfaces like PCIe, SATA, UART, etc...
|
|
|
|
endif
|