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>
This commit is contained in:
parent
d72e7c21b5
commit
34322615cb
1 changed files with 2 additions and 0 deletions
|
@ -1492,6 +1492,8 @@ int bgmac_enet_probe(struct bgmac *bgmac)
|
||||||
struct net_device *net_dev = bgmac->net_dev;
|
struct net_device *net_dev = bgmac->net_dev;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
bgmac_chip_intrs_off(bgmac);
|
||||||
|
|
||||||
net_dev->irq = bgmac->irq;
|
net_dev->irq = bgmac->irq;
|
||||||
SET_NETDEV_DEV(net_dev, bgmac->dev);
|
SET_NETDEV_DEV(net_dev, bgmac->dev);
|
||||||
dev_set_drvdata(bgmac->dev, bgmac);
|
dev_set_drvdata(bgmac->dev, bgmac);
|
||||||
|
|
Loading…
Add table
Reference in a new issue