]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/pwrctrl: slot: Factor out power on/off code to helpers
authorManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Fri, 16 Jan 2026 18:14:55 +0000 (12:14 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Jan 2026 19:23:37 +0000 (13:23 -0600)
commit0afc90ced0955d1ad2b65379e6771e4fb19ce769
tree2bddc844052587f22b66feef08a8e0e84c58e7ec
parent370d2de0fb65ed954c0b6375e36d0fa12c9323be
PCI/pwrctrl: slot: Factor out power on/off code to helpers

In order to allow the pwrctrl core to control the power on/off logic of the
pwrctrl slot driver, move the power on/off code to
pci_pwrctrl_slot_power_{off/on} helper functions.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260115-pci-pwrctrl-rework-v5-7-9d26da3ce903@oss.qualcomm.com
drivers/pci/pwrctrl/slot.c