public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Bernhard Kaindl <bk@suse.de>
Cc: linux-pci@atrey.karlin.mff.cuni.cz,
	"Alois Nešpor" <alois.nespor@gmail.com>,
	linux-kernel@vger.kernel.org, gregkh@suse.de
Subject: Re: Ok, lets kill the 'PCI hidden behind bridge' message (was: pci=assign-busses)
Date: Mon, 30 Jul 2007 22:11:43 +0200	[thread overview]
Message-ID: <20070730201143.GA3972@stusta.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0707301932440.25292@jbgna.fhfr.qr>

On Mon, Jul 30, 2007 at 08:35:13PM +0200, Bernhard Kaindl wrote:
>...
> --- linux-2.6.22/drivers/pci/probe.c
> +++ linux-2.6.22/drivers/pci/probe.c
> @@ -643,23 +643,24 @@ int pci_scan_bridge(struct pci_bus *bus,
>
>  	sprintf(child->name, (is_cardbus ? "PCI CardBus #%02x" : "PCI Bus 
> #%02x"), child->number);
>
> +#ifdef DEBUG /* Has only triggered on CardBus, fixup is in yenta_socket */
>  	while (bus->parent) {
>  		if ((child->subordinate > bus->subordinate) ||
>  		    (child->number > bus->subordinate) ||
>  		    (child->number < bus->number) ||
>  		    (child->subordinate < bus->number)) {
> -			printk(KERN_WARNING "PCI: Bus #%02x (-#%02x) is "
> -			       "hidden behind%s bridge #%02x (-#%02x)%s\n",
> +		      pr_debug("PCI: Bus #%02x (-#%02x) is %s"
> +			       "hidden behind%s bridge #%02x (-#%02x)\n",
>  			       child->number, child->subordinate,
> +			       (bus->number > child->subordinate &&
> +			        bus->subordinate < child->number) ?
> +					"wholly " : " partially",
>  			       bus->self->transparent ? " transparent" : " ",
> -			       bus->number, bus->subordinate,
> -			       pcibios_assign_all_busses() ? " " :
> -			       " (try 'pci=assign-busses')");
> -			printk(KERN_WARNING "Please report the result to "
> -			       "linux-kernel to fix this permanently\n");
> +			       bus->number, bus->subordinate);
>  		}
>  		bus = bus->parent;
>  	}
> +#endif
>
>  out:
>  	pci_write_config_word(dev, PCI_BRIDGE_CONTROL, bctl);

"#ifdef DEBUG" plus pr_debug() is twoce the same.

You don't need the #ifdef.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


  reply	other threads:[~2007-07-30 20:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30  8:29 pci=assign-busses Alois Nešpor
2007-07-30 11:53 ` pci=assign-busses Adrian Bunk
2007-07-30 12:24   ` pci=assign-busses Damien Wyart
2007-07-30 18:35   ` Ok, lets kill the 'PCI hidden behind bridge' message (was: pci=assign-busses) Bernhard Kaindl
2007-07-30 20:11     ` Adrian Bunk [this message]
2007-07-30 20:14       ` Greg KH
2007-07-30 20:15     ` Daniel Hazelton

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=20070730201143.GA3972@stusta.de \
    --to=bunk@stusta.de \
    --cc=alois.nespor@gmail.com \
    --cc=bk@suse.de \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@atrey.karlin.mff.cuni.cz \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox