Skip to content

Commit 3432261

Browse files
ffainellidavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d72e7c2 commit 3432261

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/broadcom

1 file changed

+2
-0
lines changed

drivers/net/ethernet/broadcom/bgmac.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,6 +1492,8 @@ int bgmac_enet_probe(struct bgmac *bgmac)
14921492
struct net_device *net_dev = bgmac->net_dev;
14931493
int err;
14941494

1495+
bgmac_chip_intrs_off(bgmac);
1496+
14951497
net_dev->irq = bgmac->irq;
14961498
SET_NETDEV_DEV(net_dev, bgmac->dev);
14971499
dev_set_drvdata(bgmac->dev, bgmac);

0 commit comments

Comments
 (0)