Skip to contentSkip to conversation

bcma: ignore extra GMAC cores on BCM4706

PATCH New Rafał Miłecki 1 participant 1 message Feb 19, 2013 Broadcom specific amba driver (bcma)

lore
Share & tools
lore

Rafał Miłecki

author maintainer
#0 lore raw

PATCH v2 1/1 bcma: ignore extra GMAC cores on BCM4706

---
This was noticed on two BCM4706 SoCs (the second core wasn't connected to anything or working correctly). It matches the Broadcom's code from hndpci.c file.

V2: add a short comment to explain why we ignore extra cores

---
 drivers/bcma/main.c |    5 +++++
 1 file changed, 5 insertions(+)
drivers/bcma/main.c +5 -0
index 9a6188a..f72f52b 100644
@@ -120,6 +120,11 @@ static int bcma_register_cores(struct bcma_bus *bus)
 			continue;
 		}
 
+		/* Only first GMAC core on BCM4706 is connected and working */
+		if (core->id.id == BCMA_CORE_4706_MAC_GBIT &&
+		    core->core_unit > 0)
+			continue;
+
 		core->dev.release = bcma_release_core_dev;
 		core->dev.bus = &bcma_bus_type;
 		dev_set_name(&core->dev, "bcma%d:%d", bus->num, dev_id);
Signature · 1 line
1.7.10.4