All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sitsofe Wheeler <sitsofe@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] PCIE: Reduce cannot add device warnings to KERN_INFO
Date: Tue, 30 Sep 2008 23:22:53 +0100	[thread overview]
Message-ID: <48E2A6BD.60703@yahoo.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

On my EeePC 900 when the wired and wireless ethernet are enabled and the 
system is booted with pciehp.pciehp_force=1 the following when booting 
with the quiet parameter:

pciehp: Device 0000:03:00.0 already exists at 3:0, cannot hot-add
pciehp: Cannot add device 0x3:0
pciehp: Device 0000:01:00.0 already exists at 1:0, cannot hot-add
pciehp: Cannot add device 0x1:0

This changed prevents the messages turning up during a quiet boot.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
--

[-- Attachment #2: pciehp_quiet.patch --]
[-- Type: text/plain, Size: 1157 bytes --]

 drivers/pci/hotplug/pciehp_ctrl.c |    2 +-
 drivers/pci/hotplug/pciehp_pci.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/hotplug/pciehp_ctrl.c b/drivers/pci/hotplug/pciehp_ctrl.c
index 96a5d55..1e6f7fc 100644
--- a/drivers/pci/hotplug/pciehp_ctrl.c
+++ b/drivers/pci/hotplug/pciehp_ctrl.c
@@ -239,7 +239,7 @@ static int board_added(struct slot *p_slot)
 
 	retval = pciehp_configure_device(p_slot);
 	if (retval) {
-		err("Cannot add device 0x%x:%x\n", p_slot->bus,
+		info("Cannot add device 0x%x:%x\n", p_slot->bus,
 		    p_slot->device);
 		goto err_exit;
 	}
diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c
index 6040dcc..8acff65 100644
--- a/drivers/pci/hotplug/pciehp_pci.c
+++ b/drivers/pci/hotplug/pciehp_pci.c
@@ -201,7 +201,7 @@ int pciehp_configure_device(struct slot *p_slot)
 
 	dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0));
 	if (dev) {
-		err("Device %s already exists at %x:%x, cannot hot-add\n",
+		info("Device %s already exists at %x:%x, cannot hot-add\n",
 				pci_name(dev), p_slot->bus, p_slot->device);
 		pci_dev_put(dev);
 		return -EINVAL;

                 reply	other threads:[~2008-09-30 22:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48E2A6BD.60703@yahoo.com \
    --to=sitsofe@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.