diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-04-23 16:58:04 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-24 14:20:12 +0200 |
commit | 876b8f978982216ab4a22dcd9efddfcd9b0e04e6 (patch) | |
tree | 1f6fbaca1dcdec005511f9bec500ee963475170d | |
parent | be32bf20bc5bbf3e8cf07085743bbc8f05630812 (diff) | |
download | u-boot-imx-876b8f978982216ab4a22dcd9efddfcd9b0e04e6.zip u-boot-imx-876b8f978982216ab4a22dcd9efddfcd9b0e04e6.tar.gz u-boot-imx-876b8f978982216ab4a22dcd9efddfcd9b0e04e6.tar.bz2 |
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>
-rw-r--r-- | drivers/pci/fsl_pci_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c index 68e45e1..7dc33be 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); |