Commit c3a247e0 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Greg Kroah-Hartman

bgmac: reset & enable Ethernet core before using it

commit b4dfd8e9 upstream.

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@openwrt.org>
Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c43a7c78
...@@ -1431,6 +1431,11 @@ static int bgmac_probe(struct bcma_device *core) ...@@ -1431,6 +1431,11 @@ static int bgmac_probe(struct bcma_device *core)
dev_warn(&core->dev, "Using random MAC: %pM\n", mac); 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 */ /* Allocation and references */
net_dev = alloc_etherdev(sizeof(*bgmac)); net_dev = alloc_etherdev(sizeof(*bgmac));
if (!net_dev) if (!net_dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment