Lines Matching +full:bus +full:- +full:powered
1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/pci-pwrctrl.h>
20 if (dev_fwnode(dev) != dev_fwnode(pwrctrl->dev)) in pci_pwrctrl_notify()
34 dev->of_node_reused = true; in pci_pwrctrl_notify()
47 pci_rescan_bus(to_pci_host_bridge(pwrctrl->dev->parent)->bus); in rescan_work_func()
52 * pci_pwrctrl_init() - Initialize the PCI power control context struct
59 pwrctrl->dev = dev; in pci_pwrctrl_init()
60 INIT_WORK(&pwrctrl->work, rescan_work_func); in pci_pwrctrl_init()
65 * pci_pwrctrl_device_set_ready() - Notify the pwrctrl subsystem that the PCI
66 * device is powered-up and ready to be detected.
75 * that the bus rescan was successfully started. The device will get bound to
82 if (!pwrctrl->dev) in pci_pwrctrl_device_set_ready()
83 return -ENODEV; in pci_pwrctrl_device_set_ready()
85 pwrctrl->nb.notifier_call = pci_pwrctrl_notify; in pci_pwrctrl_device_set_ready()
86 ret = bus_register_notifier(&pci_bus_type, &pwrctrl->nb); in pci_pwrctrl_device_set_ready()
90 schedule_work(&pwrctrl->work); in pci_pwrctrl_device_set_ready()
97 * pci_pwrctrl_device_unset_ready() - Notify the pwrctrl subsystem that the PCI
98 * device is about to be powered-down.
110 bus_unregister_notifier(&pci_bus_type, &pwrctrl->nb); in pci_pwrctrl_device_unset_ready()
122 * devm_pci_pwrctrl_device_set_ready - Managed variant of