Skip to contentSkip to conversation

BCM63XX: prevent second enet registration on BCM6338

PATCH Applied Florian Fainelli 2 participants 2 messages Jul 21, 2010 – Jul 23, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 BCM63XX: prevent second enet registration on BCM6338

This SoC has only one Ethernet MAC, so prevent registration of a second one.

---

arch/mips/bcm63xx/dev-enet.c +3 -0
index 9f544ba..39c2336 100644
@@ -104,6 +104,9 @@ int __init bcm63xx_enet_register(int unit,
 	if (unit > 1)
 		return -ENODEV;
 
+	if (unit == 1 && BCMCPU_IS_6338())
+		return -ENODEV;
+
 	if (!shared_device_registered) {
 		shared_res[0].start = bcm63xx_regset_address(RSET_ENETDMA);
 		shared_res[0].end = shared_res[0].start;
Applied
#1 lore raw
Quoted 1 line · Florian Fainelli

This SoC has only one Ethernet MAC, so prevent registration of a second one.

Thanks, applied.

Ralf