diff options
Diffstat (limited to 'drivers/pci/pcie/pme.c')
-rw-r--r-- | drivers/pci/pcie/pme.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/pci/pcie/pme.c b/drivers/pci/pcie/pme.c index 2dd1c68e6de8..80e58d25006d 100644 --- a/drivers/pci/pcie/pme.c +++ b/drivers/pci/pcie/pme.c | |||
@@ -294,31 +294,29 @@ static irqreturn_t pcie_pme_irq(int irq, void *context) | |||
294 | } | 294 | } |
295 | 295 | ||
296 | /** | 296 | /** |
297 | * pcie_pme_set_native - Set the PME interrupt flag for given device. | 297 | * pcie_pme_can_wakeup - Set the wakeup capability flag. |
298 | * @dev: PCI device to handle. | 298 | * @dev: PCI device to handle. |
299 | * @ign: Ignored. | 299 | * @ign: Ignored. |
300 | */ | 300 | */ |
301 | static int pcie_pme_set_native(struct pci_dev *dev, void *ign) | 301 | static int pcie_pme_can_wakeup(struct pci_dev *dev, void *ign) |
302 | { | 302 | { |
303 | device_set_run_wake(&dev->dev, true); | 303 | device_set_wakeup_capable(&dev->dev, true); |
304 | dev->pme_interrupt = true; | ||
305 | return 0; | 304 | return 0; |
306 | } | 305 | } |
307 | 306 | ||
308 | /** | 307 | /** |
309 | * pcie_pme_mark_devices - Set the PME interrupt flag for devices below a port. | 308 | * pcie_pme_mark_devices - Set the wakeup flag for devices below a port. |
310 | * @port: PCIe root port or event collector to handle. | 309 | * @port: PCIe root port or event collector to handle. |
311 | * | 310 | * |
312 | * For each device below given root port, including the port itself (or for each | 311 | * For each device below given root port, including the port itself (or for each |
313 | * root complex integrated endpoint if @port is a root complex event collector) | 312 | * root complex integrated endpoint if @port is a root complex event collector) |
314 | * set the flag indicating that it can signal run-time wake-up events via PCIe | 313 | * set the flag indicating that it can signal run-time wake-up events. |
315 | * PME interrupts. | ||
316 | */ | 314 | */ |
317 | static void pcie_pme_mark_devices(struct pci_dev *port) | 315 | static void pcie_pme_mark_devices(struct pci_dev *port) |
318 | { | 316 | { |
319 | pcie_pme_set_native(port, NULL); | 317 | pcie_pme_can_wakeup(port, NULL); |
320 | if (port->subordinate) | 318 | if (port->subordinate) |
321 | pci_walk_bus(port->subordinate, pcie_pme_set_native, NULL); | 319 | pci_walk_bus(port->subordinate, pcie_pme_can_wakeup, NULL); |
322 | } | 320 | } |
323 | 321 | ||
324 | /** | 322 | /** |