123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- From 8743af8a77dd909970462ca578358128cce5d027 Mon Sep 17 00:00:00 2001
- From: Daniel Golle <[email protected]>
- Date: Tue, 27 Sep 2022 15:39:39 +0100
- Subject: [PATCH] net: ethernet: mtk_eth_soc: fix mask of
- RX_DMA_GET_SPORT{,_V2}
- To: [email protected],
- [email protected],
- Lorenzo Bianconi <[email protected]>
- Cc: Sujuan Chen <[email protected]>,
- Bo Jiao <[email protected]>,
- Felix Fietkau <[email protected]>,
- John Crispin <[email protected]>,
- Sean Wang <[email protected]>,
- Mark Lee <[email protected]>,
- David S. Miller <[email protected]>,
- Eric Dumazet <[email protected]>,
- Jakub Kicinski <[email protected]>,
- Paolo Abeni <[email protected]>,
- Matthias Brugger <[email protected]>,
- Chen Minqiang <[email protected]>
- The bitmasks applied in RX_DMA_GET_SPORT and RX_DMA_GET_SPORT_V2 macros
- were swapped. Fix that.
- Reported-by: Chen Minqiang <[email protected]>
- Fixes: 160d3a9b192985 ("net: ethernet: mtk_eth_soc: introduce MTK_NETSYS_V2 support")
- Acked-by: Lorenzo Bianconi <[email protected]>
- Signed-off-by: Daniel Golle <[email protected]>
- ---
- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
- --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h
- +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
- @@ -315,8 +315,8 @@
- #define MTK_RXD5_PPE_CPU_REASON GENMASK(22, 18)
- #define MTK_RXD5_SRC_PORT GENMASK(29, 26)
-
- -#define RX_DMA_GET_SPORT(x) (((x) >> 19) & 0xf)
- -#define RX_DMA_GET_SPORT_V2(x) (((x) >> 26) & 0x7)
- +#define RX_DMA_GET_SPORT(x) (((x) >> 19) & 0x7)
- +#define RX_DMA_GET_SPORT_V2(x) (((x) >> 26) & 0xf)
-
- /* PDMA V2 descriptor rxd3 */
- #define RX_DMA_VTAG_V2 BIT(0)
|