]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pci: Fix boot panic on mpc83xx (regression)
authorRojhalat Ibrahim <imr@rtschenk.de>
Mon, 17 Jun 2013 14:02:41 +0000 (16:02 +0200)
committerScott Wood <scottwood@freescale.com>
Mon, 24 Jun 2013 21:54:09 +0000 (16:54 -0500)
commit55b55cf3851c220d10ce30983de55e7d0ef77b79
tree49216c3a8c311009d5d85db41c7844a69d6548e6
parent8e811e7bfddc7099c8ec81c30605b977a852f740
powerpc/pci: Fix boot panic on mpc83xx (regression)

The following commit caused a fatal oops when booting on mpc83xx with
a non-express PCI bus (regardless of whether a PCI device is present):

commit a0c4add71fac8e1f936014c76e0e9f3b316b59c9
Author: Rojhalat Ibrahim <imr@rtschenk.de>
Date:   Mon Apr 8 10:15:28 2013 +0200

    powerpc/fsl-pci Make PCIe hotplug work with Freescale PCIe controllers

    Up to now the PCIe link status on Freescale PCIe controllers was only
    checked once at boot time. So hotplug did not work. With this patch the
    link status is checked on every config read. PCIe devices not present at
    boot time are found after doing 'echo 1 >/sys/bus/pci/rescan'.

Signed-off-by: Rojhalat Ibrahim <imr@rtschenk.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This patch fixes the issue by calling setup_indirect_pci for all device types.
fsl_indirect_read_config is now only used for booke/86xx PCIe controllers.

Reported-by: Michael Guntsche <mike@it-loops.com>
Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Rojhalat Ibrahim <imr@rtschenk.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/sysdev/fsl_pci.c