74d00a8c38
* properly format/comment all patches * merge debloat patches * merge Kconfig patches * merge swconfig patches * merge hotplug patches * drop 200-fix_localversion.patch - upstream * drop 222-arm_zimage_none.patch - unused * drop 252-mv_cesa_depends.patch - no longer required * drop 410-mtd-move-forward-declaration-of-struct-mtd_info.patch - unused * drop 661-fq_codel_keep_dropped_stats.patch - outdated * drop 702-phy_add_aneg_done_function.patch - upstream * drop 840-rtc7301.patch - unused * drop 841-rtc_pt7c4338.patch - upstream * drop 921-use_preinit_as_init.patch - unused * drop spio-gpio-old and gpio-mmc - unused Signed-off-by: John Crispin <john@phrozen.org>
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From b4dfd8e92956b396d3438212bc9a0be6267b8b34 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
|
|
Date: Tue, 12 Apr 2016 13:30:45 +0200
|
|
Subject: [PATCH] bgmac: reset & enable Ethernet core before using it
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
This fixes Ethernet on D-Link DIR-885L with BCM47094 SoC. Felix reported
|
|
similar fix was needed for his BCM4709 device (Buffalo WXR-1900DHP?).
|
|
I tested this for regressions on BCM4706, BCM4708A0 and BCM47081A0.
|
|
|
|
Cc: Felix Fietkau <nbd@nbd.name>
|
|
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
---
|
|
|
|
--- a/drivers/net/ethernet/broadcom/bgmac.c
|
|
+++ b/drivers/net/ethernet/broadcom/bgmac.c
|
|
@@ -1564,6 +1564,11 @@ static int bgmac_probe(struct bcma_devic
|
|
dev_warn(&core->dev, "Using random MAC: %pM\n", mac);
|
|
}
|
|
|
|
+ /* This (reset &) enable is not preset in specs or reference driver but
|
|
+ * Broadcom does it in arch PCI code when enabling fake PCI device.
|
|
+ */
|
|
+ bcma_core_enable(core, 0);
|
|
+
|
|
/* Allocation and references */
|
|
net_dev = alloc_etherdev(sizeof(*bgmac));
|
|
if (!net_dev)
|