0087-net-next-mediatek-disable-all-interrupts-during-prob.patch 989 B

1234567891011121314151617181920212223242526
  1. From f9a08e142fd87c72a7803203ce4ecc94806046ca Mon Sep 17 00:00:00 2001
  2. From: John Crispin <john@phrozen.org>
  3. Date: Tue, 3 May 2016 03:14:07 +0200
  4. Subject: [PATCH 087/102] net-next: mediatek: disable all interrupts during
  5. probe
  6. The current code only disables those IRQs that we will later use. To
  7. ensure that we have a predefined state, we really want to disable all IRQs.
  8. Change the code to disable all IRQs to achieve this.
  9. Signed-off-by: John Crispin <john@phrozen.org>
  10. ---
  11. drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
  14. +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
  15. @@ -1406,7 +1406,7 @@ static int __init mtk_hw_init(struct mtk
  16. /* disable delay and normal interrupt */
  17. mtk_w32(eth, 0, MTK_QDMA_DELAY_INT);
  18. - mtk_irq_disable(eth, MTK_TX_DONE_INT | MTK_RX_DONE_INT);
  19. + mtk_irq_disable(eth, ~0);
  20. mtk_w32(eth, RST_GL_PSE, MTK_RST_GL);
  21. mtk_w32(eth, 0, MTK_RST_GL);