]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: pci-ar724x: avoid data bus error due to a missing PCIe module
authorGabor Juhos <juhosg@openwrt.org>
Thu, 23 Aug 2012 13:35:26 +0000 (15:35 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 23 Aug 2012 13:44:47 +0000 (15:44 +0200)
commit0e220acc3e9c7e4361d7924a052ea78088e4e49a
treed86f7a45cb7c631e0e2c295e3f70d1bed1d849f7
parentb86903cb591e6a4a2e4d0f59a3463f168c45efd6
MIPS: pci-ar724x: avoid data bus error due to a missing PCIe module

If the controller has no PCIe module attached, accessing of the device
configuration space causes a data bus error. Avoid this by checking the
status of the PCIe link in advance, and indicate an error if the link
is down.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: stable@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4293/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci-ar724x.c