Skip to contentSkip to conversation

net: dsa: lantiq_gswip: fix register definition

PATCH Applied Aleksander Jan Bajkowski 3 participants 3 messages Oct 15, 2021 – Oct 18, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: dsa: lantiq_gswip: fix register definition

I compared the register definitions with the D-Link DWR-966 GPL sources and found that the PUAFD field definition was incorrect. This definition is unused and causes no issues.

Fixes 14fceff4771e ("net: dsa: Add Lantiq / Intel DSA driver for vrx200")
---
 drivers/net/dsa/lantiq_gswip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dsa/lantiq_gswip.c +1 -1
index 3ff4b7e177f3..dbd4486a173f 100644
@@ -230,7 +230,7 @@
 #define GSWIP_SDMA_PCTRLp(p)		(0xBC0 + ((p) * 0x6))
 #define  GSWIP_SDMA_PCTRL_EN		BIT(0)	/* SDMA Port Enable */
 #define  GSWIP_SDMA_PCTRL_FCEN		BIT(1)	/* Flow Control Enable */
-#define  GSWIP_SDMA_PCTRL_PAUFWD	BIT(1)	/* Pause Frame Forwarding */
+#define  GSWIP_SDMA_PCTRL_PAUFWD	BIT(3)	/* Pause Frame Forwarding */
 
 #define GSWIP_TABLE_ACTIVE_VLAN		0x01
 #define GSWIP_TABLE_VLAN_MAPPING	0x02
Signature · 1 line
2.30.2
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Aleksander Jan Bajkowski

I compared the register definitions with the D-Link DWR-966 GPL sources and found that the PUAFD field definition was incorrect. This definition is unused and causes no issues.

Fixes 14fceff4771e ("net: dsa: Add Lantiq / Intel DSA driver for vrx200")

Thanks for finding this problem.

Quoted 18 lines
---
  drivers/net/dsa/lantiq_gswip.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dsa/lantiq_gswip.c +1 -1
index 3ff4b7e177f3..dbd4486a173f 100644
@@ -230,7 +230,7 @@
  #define GSWIP_SDMA_PCTRLp(p)		(0xBC0 + ((p) * 0x6))
  #define  GSWIP_SDMA_PCTRL_EN		BIT(0)	/* SDMA Port Enable */
  #define  GSWIP_SDMA_PCTRL_FCEN		BIT(1)	/* Flow Control Enable */
-#define  GSWIP_SDMA_PCTRL_PAUFWD	BIT(1)	/* Pause Frame Forwarding */
+#define  GSWIP_SDMA_PCTRL_PAUFWD	BIT(3)	/* Pause Frame Forwarding */
 
  #define GSWIP_TABLE_ACTIVE_VLAN		0x01
  #define GSWIP_TABLE_VLAN_MAPPING	0x02
#2 lore raw
In reply to Aleksander Jan Bajkowski
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 8 lines · On Sat, 16 Oct 2021 00:10:20 +0200 you wrote:

I compared the register definitions with the D-Link DWR-966 GPL sources and found that the PUAFD field definition was incorrect. This definition is unused and causes no issues.

Fixes 14fceff4771e ("net: dsa: Add Lantiq / Intel DSA driver for vrx200")

[...]

Here is the summary with links:
- [net] net: dsa: lantiq_gswip: fix register definition

    https://git.kernel.org/netdev/net/c/66d262804a22

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html