Skip to contentSkip to conversation

powerpc/86xx: Run sbc310 USB fixup code only on the appropriate platform.

PATCH Applied Martyn Welch 2 participants 2 messages Mar 13, 2009 – Mar 19, 2009 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/86xx: Run sbc310 USB fixup code only on the appropriate platform.

Patch to limit NEC fixup to SBC310, following similar patch to SBC610 by Tony Breeds: 368a12117dd8abf6eaefa37c21ac313b517128b9

---

Hi Kumar,

The sbc310 patches have been added to your next tree. This patch is needed to stop the same problem occuring as occured with the sbc610.

 arch/powerpc/platforms/86xx/gef_sbc310.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/powerpc/platforms/86xx/gef_sbc310.c +4 -0
index 0f20172..ba3ce43 100644
@@ -153,6 +153,10 @@ static void __init gef_sbc310_nec_fixup(struct pci_dev *pdev)
 {
 	unsigned int val;
 
+	/* Do not do the fixup on other platforms! */
+	if (!machine_is(gef_sbc310))
+		return;
+
 	printk(KERN_INFO "Running NEC uPD720101 Fixup\n");
 
 	/* Ensure only ports 1 & 2 are enabled */
Applied
#1 lore raw
Quoted 5 lines · Martyn Welch

Patch to limit NEC fixup to SBC310, following similar patch to SBC610 by Tony Breeds: 368a12117dd8abf6eaefa37c21ac313b517128b9

---

Quoted 7 lines

Hi Kumar,

The sbc310 patches have been added to your next tree. This patch is needed to stop the same problem occuring as occured with the sbc610.

arch/powerpc/platforms/86xx/gef_sbc310.c | 4 ++++

1 files changed, 4 insertions(+), 0 deletions(-)

applied

- k