1
linux/drivers/pci/pwrctl
Bartosz Golaszewski ad783b9f8e PCI/pwrctl: Abandon QCom WCN probe on pre-pwrseq device-trees
Old device trees for some platforms already define wifi nodes for the WCN
family of chips since before power sequencing was added upstream.

These nodes don't consume the regulator outputs from the PMU, and if we
allow this driver to bind to one of such "incomplete" nodes, we'll see a
kernel log error about the infinite probe deferral.

Extend the driver by adding a platform data struct matched against the
compatible. This struct contains the pwrseq target string as well as a
validation function called right after entering probe().

For Qualcomm WCN models, check the existence of the regulator supply
property that indicates the DT is already using power sequencing and return
-ENODEV if it's not there, indicating to the driver model that the device
should not be bound to the pwrctl driver.

Link: https://lore.kernel.org/r/20241007092447.18616-1-brgl@bgdev.pl
Fixes: 6140d185a4 ("PCI/pwrctl: Add a PCI power control driver for power sequenced devices")
Reported-by: Johan Hovold <johan@kernel.org>
Closes: https://lore.kernel.org/all/Zv565olMDDGHyYVt@hovoldconsulting.com/
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2024-10-23 13:34:41 -05:00
..
core.c PCI/pwrctl: Rescan bus on a separate thread 2024-09-03 17:11:05 -05:00
Kconfig Kconfig: reduce the amount of power sequencing noise 2024-07-18 13:56:40 +02:00
Makefile
pci-pwrctl-pwrseq.c PCI/pwrctl: Abandon QCom WCN probe on pre-pwrseq device-trees 2024-10-23 13:34:41 -05:00