Skip to contentSkip to conversation

fsl_pci: Only modify registers if we have them

PATCH New Kumar Gala 3 participants 3 messages Apr 23, 2008 – Apr 24, 2008 PCI

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 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".

---

A fix for 1.3.3.

 drivers/pci/fsl_pci_init.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/pci/fsl_pci_init.c +2 -1
index 68e45e1..7dc33be 100644
@@ -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);
Signature · 1 line
1.5.4.1
#2 lore raw

PATCH 1/1 fsl_pci: Only modify registers if we have them

In reply to Kumar Gala
Quoted 9 lines · In message <[email protected]> you wrote:

pme_msg_det exists only on PCIe controllers only set it if we are a "bridge".

---

A fix for 1.3.3.

 drivers/pci/fsl_pci_init.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You're dead, Jim.
	-- McCoy, "Amok Time", stardate 3372.7