]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/pwrctrl: Add 'struct pci_pwrctrl::power_{on/off}' callbacks
authorManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Thu, 15 Jan 2026 07:29:01 +0000 (12:59 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Jan 2026 19:23:38 +0000 (13:23 -0600)
commit113f44ed50d274447a3b76cf250989a423f179a5
tree318184577be27e00bd4a601de642fb6f636538fa
parent2045c352812e5a2eec0aa9d2b1e5d2fe1127b919
PCI/pwrctrl: Add 'struct pci_pwrctrl::power_{on/off}' callbacks

To allow the pwrctrl core to control the power on/off sequences of the
pwrctrl drivers, add the 'struct pci_pwrctrl::power_{on/off}' callbacks and
populate them in the respective pwrctrl drivers.

The pwrctrl drivers still power on the resources on their own now. So there
is no functional change.

Co-developed-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260115-pci-pwrctrl-rework-v5-9-9d26da3ce903@oss.qualcomm.com
drivers/pci/pwrctrl/pci-pwrctrl-pwrseq.c
drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
drivers/pci/pwrctrl/slot.c
include/linux/pci-pwrctrl.h