summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2018-03-27 16:20:02 -0700
committerDavid S. Miller <davem@davemloft.net>2018-03-29 12:06:10 -0400
commit34322615cbaa0f54305f7818bb74c70bb50f47a8 (patch)
tree19770c340458c69e4a16d61cad7a51104d70a71e
parentd72e7c21b54bd7a6caa08a8eb62257d4e4196ab3 (diff)
downloadlinux-stable-34322615cbaa0f54305f7818bb74c70bb50f47a8.tar.gz
linux-stable-34322615cbaa0f54305f7818bb74c70bb50f47a8.tar.bz2
linux-stable-34322615cbaa0f54305f7818bb74c70bb50f47a8.zip
net: bgmac: Mask interrupts during probe
We can have interrupts left enabled form e.g: the bootloader which used the network device for network boot. Make sure we have those disabled as early as possible to avoid spurious interrupts. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/broadcom/bgmac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bgmac.c b/drivers/net/ethernet/broadcom/bgmac.c
index 46d7b8068425..2326cc219c46 100644
--- a/drivers/net/ethernet/broadcom/bgmac.c
+++ b/drivers/net/ethernet/broadcom/bgmac.c
@@ -1492,6 +1492,8 @@ int bgmac_enet_probe(struct bgmac *bgmac)
struct net_device *net_dev = bgmac->net_dev;
int err;
+ bgmac_chip_intrs_off(bgmac);
+
net_dev->irq = bgmac->irq;
SET_NETDEV_DEV(net_dev, bgmac->dev);
dev_set_drvdata(bgmac->dev, bgmac);