diff options
author | John Crispin <john@phrozen.org> | 2016-06-10 11:28:03 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-11 06:29:29 (GMT) |
commit | 2ff0bb61646f286fa97db2904491974302a14f1f (patch) | |
tree | f74a11c471059a08f79e736db9f3403954c944bb /drivers/net | |
parent | 6675086d04e7c0748cd5884f7c8611b5f0836250 (diff) | |
download | linux-2ff0bb61646f286fa97db2904491974302a14f1f.tar.xz |
net: mediatek: disable all interrupts during probe
The current code only disables those IRQs that we will later use. To
ensure that we have a predefined state, we really want to disable all IRQs.
Change the code to disable all IRQs to achieve this.
Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index f30c2e47..e3dadae9 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -1396,7 +1396,7 @@ static int __init mtk_hw_init(struct mtk_eth *eth) /* disable delay and normal interrupt */ mtk_w32(eth, 0, MTK_QDMA_DELAY_INT); - mtk_irq_disable(eth, MTK_TX_DONE_INT | MTK_RX_DONE_INT); + mtk_irq_disable(eth, ~0); mtk_w32(eth, RST_GL_PSE, MTK_RST_GL); mtk_w32(eth, 0, MTK_RST_GL); |