]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/pwrctrl: Add PCIe M.2 connector support
authorManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Wed, 28 Jan 2026 15:37:15 +0000 (21:07 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 28 Jan 2026 16:39:17 +0000 (10:39 -0600)
commit9cb64f61ec7a9034299807b1e562413329ddac5b
tree002e3e1fdd1c31d5536a427358bd986989a65114
parent54786d9806b2720659b4fc64af0ebde148780229
PCI/pwrctrl: Add PCIe M.2 connector support

Add support for handling PCIe M.2 connectors as Power Sequencing devices.
These connectors are exposed as Power Sequencing devices as they often
support multiple interfaces like PCIe/SATA, USB/UART to the host machine,
and the interfaces may be driven by different client drivers at the same
time.

This driver handles the PCIe interface of these connectors. It first checks
for the presence of the graph port in the Root Port node with the help of
of_graph_is_present() API. If present, it acquires/powers ON the
corresponding pwrseq device.

Once the pwrseq device is powered ON, the driver will skip parsing the Root
Port/Slot resources and register with the pwrctrl framework.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://patch.msgid.link/20260128-pci-m2-v7-1-9b3a5fe3d244@oss.qualcomm.com
drivers/pci/pwrctrl/Kconfig
drivers/pci/pwrctrl/slot.c