aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/patches-5.4/1001-eth-mtk-disable-TBDDONE-support.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2020-05-04 16:27:30 +0200
committerJohn Crispin <john@phrozen.org>2020-05-04 16:27:30 +0200
commitabb0452cd8ec4e7d131d9728e5dd3b613dd10bbb (patch)
treebfdb98efaa831dd1c4ae4e9a3cf01af413189564 /target/linux/mediatek/patches-5.4/1001-eth-mtk-disable-TBDDONE-support.patch
parentb5516603dd90215d5cdc5bac7ea496a6c758bb0f (diff)
downloadupstream-abb0452cd8ec4e7d131d9728e5dd3b613dd10bbb.tar.gz
upstream-abb0452cd8ec4e7d131d9728e5dd3b613dd10bbb.tar.bz2
upstream-abb0452cd8ec4e7d131d9728e5dd3b613dd10bbb.zip
mediatek: update patches
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/patches-5.4/1001-eth-mtk-disable-TBDDONE-support.patch')
-rw-r--r--target/linux/mediatek/patches-5.4/1001-eth-mtk-disable-TBDDONE-support.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/mediatek/patches-5.4/1001-eth-mtk-disable-TBDDONE-support.patch b/target/linux/mediatek/patches-5.4/1001-eth-mtk-disable-TBDDONE-support.patch
new file mode 100644
index 0000000000..14c2e12a27
--- /dev/null
+++ b/target/linux/mediatek/patches-5.4/1001-eth-mtk-disable-TBDDONE-support.patch
@@ -0,0 +1,25 @@
+diff -urN a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 2020-04-21 14:33:05.702816632 +0800
++++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 2020-04-21 14:33:19.590328084 +0800
+@@ -1345,10 +1345,11 @@
+ u32 next_cpu = desc->txd2;
+ int mac = 0;
+
+- desc = mtk_qdma_phys_to_virt(ring, desc->txd2);
+ if ((desc->txd3 & TX_DMA_OWNER_CPU) == 0)
+ break;
+
++ desc = mtk_qdma_phys_to_virt(ring, desc->txd2);
++
+ tx_buf = mtk_desc_to_tx_buf(ring, desc);
+ if (tx_buf->flags & MTK_TX_FLAGS_FPORT1)
+ mac = 1;
+@@ -2172,7 +2173,7 @@
+
+ if (MTK_HAS_CAPS(eth->soc->caps, MTK_QDMA)) {
+ mtk_w32(eth,
+- MTK_TX_WB_DDONE | MTK_TX_DMA_EN |
++ MTK_TX_DMA_EN |
+ MTK_DMA_SIZE_16DWORDS | MTK_NDP_CO_PRO |
+ MTK_RX_DMA_EN | MTK_RX_2B_OFFSET |
+ MTK_RX_BT_32DWORDS,