net: ethernet: mtk_eth_soc: fix mask of RX_DMA_GET_SPORT{,_V2}
Subsystems (4)
PATCH 1/1 net: ethernet: mtk_eth_soc: fix mask of RX_DMA_GET_SPORT{,_V2}
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(-)
drivers/net/ethernet/mediatek/mtk_eth_soc.h +2 -2
@@ -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)
Signature · 1 line
2.37.3
This patch was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Tue, 27 Sep 2022 16:30:02 +0100 you wrote:
The bitmasks applied in
RX_DMA_GET_SPORTandRX_DMA_GET_SPORT_V2macros 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]>[...]
Here is the summary with links:
- net: ethernet: mtk_eth_soc: fix mask of RX_DMA_GET_SPORT{,_V2}
https://git.kernel.org/netdev/net/c/c9da02bfb111
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html