Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34322615 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

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: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d72e7c21
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);