Return-path: Received: from mail-wg0-f47.google.com ([74.125.82.47]:63956 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932823Ab3BSSlu (ORCPT ); Tue, 19 Feb 2013 13:41:50 -0500 Received: by mail-wg0-f47.google.com with SMTP id dr13so5627354wgb.2 for ; Tue, 19 Feb 2013 10:41:49 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: linux-wireless@vger.kernel.org, "John W. Linville" Cc: Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH V2] bcma: ignore extra GMAC cores on BCM4706 Date: Tue, 19 Feb 2013 19:41:42 +0100 Message-Id: <1361299302-4567-1-git-send-email-zajec5@gmail.com> (sfid-20130219_194153_707981_08A05F8F) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: Signed-off-by: Rafał Miłecki --- 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(+) diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c index 9a6188a..f72f52b 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c @@ -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); -- 1.7.10.4