3c351d345e7fd8fcbab4c8180e182012faed2cb4
[openwrt/openwrt.git] / target / linux / mediatek / patches-4.14 / 0046-net-mediatek-add-irq-delay.patch
1 From 6e081074df96bf3762c2e6438c383f11a56b0a7e Mon Sep 17 00:00:00 2001
2 From: John Crispin <john@phrozen.org>
3 Date: Thu, 10 Aug 2017 15:58:04 +0200
4 Subject: [PATCH 46/57] net: mediatek: add irq delay
5
6 Signed-off-by: John Crispin <john@phrozen.org>
7 ---
8 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 7 ++++++-
9 drivers/net/ethernet/mediatek/mtk_eth_soc.h | 8 +++++++-
10 2 files changed, 13 insertions(+), 2 deletions(-)
11
12 Index: linux-4.14.11/drivers/net/ethernet/mediatek/mtk_eth_soc.c
13 ===================================================================
14 --- linux-4.14.11.orig/drivers/net/ethernet/mediatek/mtk_eth_soc.c
15 +++ linux-4.14.11/drivers/net/ethernet/mediatek/mtk_eth_soc.c
16 @@ -1994,6 +1994,7 @@ static int mtk_hw_init(struct mtk_eth *e
17
18 /* enable interrupt delay for RX */
19 mtk_w32(eth, MTK_PDMA_DELAY_RX_DELAY, MTK_PDMA_DELAY_INT);
20 + //mtk_w32(eth, MTK_PDMA_DELAY_RX_DELAY, MTK_QDMA_DELAY_INT);
21
22 /* disable delay and normal interrupt */
23 mtk_w32(eth, 0, MTK_QDMA_DELAY_INT);