]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/pwrctrl: Create pwrctrl device if graph port is found
authorManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Wed, 28 Jan 2026 15:37:16 +0000 (21:07 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 29 Jan 2026 21:04:26 +0000 (15:04 -0600)
commit9db826206f9b7c3b5449848e79adea4756a1605a
tree779c06b1e6159326ef418d8e89c8b3e6bf7fbd24
parent9cb64f61ec7a9034299807b1e562413329ddac5b
PCI/pwrctrl: Create pwrctrl device if graph port is found

The devicetree node of the PCIe Root Port/Slot could have the graph port to
link the PCIe M.2 connector node. Since the M.2 connectors are modeled as
Power Sequencing devices, they need to be controlled by the pwrctrl driver
like the Root Port/Slot supplies.

Hence, create the pwrctrl device if the graph port is found in the node.

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-2-9b3a5fe3d244@oss.qualcomm.com
drivers/pci/pwrctrl/core.c