878e8fe996d093f824db6d8d942e89e41aa01237
[openwrt/staging/blocktrron.git] /
1 From: Lorenzo Bianconi <lorenzo@kernel.org>
2 Date: Mon, 18 Sep 2023 12:29:11 +0200
3 Subject: [PATCH] net: ethernet: mtk_wed: fix EXT_INT_STATUS_RX_FBUF
4 definitions for MT7986 SoC
5
6 Fix MTK_WED_EXT_INT_STATUS_RX_FBUF_LO_TH and
7 MTK_WED_EXT_INT_STATUS_RX_FBUF_HI_TH definitions for MT7986 (MT7986 is
8 the only SoC to use them).
9
10 Fixes: de84a090d99a ("net: ethernet: mtk_eth_wed: add wed support for mt7986 chipset")
11 Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
12 Signed-off-by: Paolo Abeni <pabeni@redhat.com>
13 ---
14
15 --- a/drivers/net/ethernet/mediatek/mtk_wed_regs.h
16 +++ b/drivers/net/ethernet/mediatek/mtk_wed_regs.h
17 @@ -64,8 +64,8 @@ struct mtk_wdma_desc {
18 #define MTK_WED_EXT_INT_STATUS_TKID_TITO_INVALID BIT(4)
19 #define MTK_WED_EXT_INT_STATUS_TX_FBUF_LO_TH BIT(8)
20 #define MTK_WED_EXT_INT_STATUS_TX_FBUF_HI_TH BIT(9)
21 -#define MTK_WED_EXT_INT_STATUS_RX_FBUF_LO_TH BIT(12)
22 -#define MTK_WED_EXT_INT_STATUS_RX_FBUF_HI_TH BIT(13)
23 +#define MTK_WED_EXT_INT_STATUS_RX_FBUF_LO_TH BIT(10) /* wed v2 */
24 +#define MTK_WED_EXT_INT_STATUS_RX_FBUF_HI_TH BIT(11) /* wed v2 */
25 #define MTK_WED_EXT_INT_STATUS_RX_DRV_R_RESP_ERR BIT(16)
26 #define MTK_WED_EXT_INT_STATUS_RX_DRV_W_RESP_ERR BIT(17)
27 #define MTK_WED_EXT_INT_STATUS_RX_DRV_COHERENT BIT(18)