]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/PCI: Abort if legacy init fails
authorThomas Gleixner <tglx@linutronix.de>
Thu, 16 Mar 2017 21:50:04 +0000 (22:50 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Jun 2017 20:32:55 +0000 (22:32 +0200)
commitaae3e318d012e76211f34bb65754f3d4d2a8c93d
tree5a63d829abe948b1cdae7d62a2b0b5702ab0c363
parent9304d1621e6019c63497f8a4aad09d003916dbe9
x86/PCI: Abort if legacy init fails

If the legacy PCI init fails, then there are no PCI config space accesors
available, but the code continues and tries to scan the busses, which fails
due to the lack of config space accessors.

Return right away, if the last init fallback fails.

Switch the few printks to pr_info while at it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Bjorn Helgaas <helgaas@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: linux-pci@vger.kernel.org
Link: http://lkml.kernel.org/r/20170316215057.047576516@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/pci/legacy.c