| .. | .. |
|---|
| 7 | 7 | * Copyright (C) 2009 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. |
|---|
| 8 | 8 | */ |
|---|
| 9 | 9 | |
|---|
| 10 | +#define dev_fmt(fmt) "PME: " fmt |
|---|
| 11 | + |
|---|
| 10 | 12 | #include <linux/pci.h> |
|---|
| 11 | 13 | #include <linux/kernel.h> |
|---|
| 12 | 14 | #include <linux/errno.h> |
|---|
| .. | .. |
|---|
| 194 | 196 | * assuming that the PME was reported by a PCIe-PCI bridge that |
|---|
| 195 | 197 | * used devfn different from zero. |
|---|
| 196 | 198 | */ |
|---|
| 197 | | - pci_dbg(port, "PME interrupt generated for non-existent device %02x:%02x.%d\n", |
|---|
| 198 | | - busnr, PCI_SLOT(devfn), PCI_FUNC(devfn)); |
|---|
| 199 | + pci_info(port, "interrupt generated for non-existent device %02x:%02x.%d\n", |
|---|
| 200 | + busnr, PCI_SLOT(devfn), PCI_FUNC(devfn)); |
|---|
| 199 | 201 | found = pcie_pme_from_pci_bridge(bus, 0); |
|---|
| 200 | 202 | } |
|---|
| 201 | 203 | |
|---|
| 202 | 204 | out: |
|---|
| 203 | 205 | if (!found) |
|---|
| 204 | | - pci_dbg(port, "Spurious native PME interrupt!\n"); |
|---|
| 206 | + pci_info(port, "Spurious native interrupt!\n"); |
|---|
| 205 | 207 | } |
|---|
| 206 | 208 | |
|---|
| 207 | 209 | /** |
|---|
| .. | .. |
|---|
| 341 | 343 | return ret; |
|---|
| 342 | 344 | } |
|---|
| 343 | 345 | |
|---|
| 344 | | - pci_info(port, "Signaling PME with IRQ %d\n", srv->irq); |
|---|
| 346 | + pci_info(port, "Signaling with IRQ %d\n", srv->irq); |
|---|
| 345 | 347 | |
|---|
| 346 | 348 | pcie_pme_mark_devices(port); |
|---|
| 347 | 349 | pcie_pme_interrupt_enable(port, true); |
|---|
| .. | .. |
|---|
| 406 | 408 | |
|---|
| 407 | 409 | /** |
|---|
| 408 | 410 | * pcie_pme_resume - Resume PCIe PME service device. |
|---|
| 409 | | - * @srv - PCIe service device to resume. |
|---|
| 411 | + * @srv: PCIe service device to resume. |
|---|
| 410 | 412 | */ |
|---|
| 411 | 413 | static int pcie_pme_resume(struct pcie_device *srv) |
|---|
| 412 | 414 | { |
|---|
| .. | .. |
|---|
| 429 | 431 | |
|---|
| 430 | 432 | /** |
|---|
| 431 | 433 | * pcie_pme_remove - Prepare PCIe PME service device for removal. |
|---|
| 432 | | - * @srv - PCIe service device to remove. |
|---|
| 434 | + * @srv: PCIe service device to remove. |
|---|
| 433 | 435 | */ |
|---|
| 434 | 436 | static void pcie_pme_remove(struct pcie_device *srv) |
|---|
| 435 | 437 | { |
|---|