Skip to contentSkip to conversation

Downgrade printk that complains about unsupported PCI PM caps

PATCH Applied David Howells 2 participants 2 messages Jan 12, 2005 – Jan 13, 2005 4 messages not in the archive PCI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 Downgrade printk that complains about unsupported PCI PM caps

The attached patch downgrades to KERN_DEBUG level the printk that issues a notification that an unsupported version of the PCI power management registers has been encountered by pci_set_power_state().

---
warthog>diffstat -p1 pci-pm-printk-2611rc1.diff

 drivers/pci/pci.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/pci/pci.c renamed from warthog/kernels/linux-2.6.11-rc1/drivers/pci/pci.c +1 -1
diff -uNrp /warthog/kernels/linux-2.6.11-rc1/drivers/pci/pci.c linux-2.6.11-rc1-frv/drivers/pci/pci.c
@@ -269,7 +269,7 @@ pci_set_power_state(struct pci_dev *dev,
 
 	pci_read_config_word(dev,pm + PCI_PM_PMC,&pmc);
 	if ((pmc & PCI_PM_CAP_VER_MASK) != 2) {
-		printk(KERN_WARNING
+		printk(KERN_DEBUG
 		       "PCI: %s has unsupported PM cap regs version (%u)\n",
 		       dev->slot_name, pmc & PCI_PM_CAP_VER_MASK);
 		return -EIO;
Applied
#2 lore raw
Quoted 6 lines · David Howells

The attached patch downgrades to KERN_DEBUG level the printk that issues a notification that an unsupported version of the PCI power management registers has been encountered by pci_set_power_state().

Applied, thanks.

greg k-h