[PATCH] bcma: ignore extra GMAC cores on BCM4706

DORMANTno replies

From: Rafał Miłecki <zajec5@gmail.com>
Date: 2013-02-19 18:36:24
Subsystem: broadcom specific amba driver (bcma), the rest · Maintainers: Rafał Miłecki, Linus Torvalds

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
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.
---
 drivers/bcma/main.c |    4 ++++
 1 file changed, 4 insertions(+)
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c
index 9a6188a..fbf56b3 100644
--- a/drivers/bcma/main.c
+++ b/drivers/bcma/main.c
@@ -120,6 +120,10 @@ static int bcma_register_cores(struct bcma_bus *bus)
 			continue;
 		}
 
+		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);
-- 
1.7.10.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help