summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-04-23 16:58:04 -0500
committerWolfgang Denk <wd@denx.de>2008-04-24 14:20:12 +0200
commit876b8f978982216ab4a22dcd9efddfcd9b0e04e6 (patch)
tree1f6fbaca1dcdec005511f9bec500ee963475170d /drivers/pci
parentbe32bf20bc5bbf3e8cf07085743bbc8f05630812 (diff)
downloadtalos-obmc-uboot-876b8f978982216ab4a22dcd9efddfcd9b0e04e6.tar.gz
talos-obmc-uboot-876b8f978982216ab4a22dcd9efddfcd9b0e04e6.zip
fsl_pci: Only modify registers if we have them
pme_msg_det exists only on PCIe controllers only set it if we are a "bridge". Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/fsl_pci_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c
index 68e45e17b3..7dc33be899 100644
--- a/drivers/pci/fsl_pci_init.c
+++ b/drivers/pci/fsl_pci_init.c
@@ -182,7 +182,8 @@ fsl_pci_init(struct pci_controller *hose)
/* Clear all error indications */
- pci->pme_msg_det = 0xffffffff;
+ if (bridge)
+ pci->pme_msg_det = 0xffffffff;
pci->pedr = 0xffffffff;
pci_hose_read_config_word (hose, dev, PCI_DSR, &temp16);
OpenPOWER on IntegriCloud