]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: dsa: lantiq_gswip: fix register definition
authorAleksander Jan Bajkowski <olek2@wp.pl>
Fri, 15 Oct 2021 22:10:20 +0000 (00:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Oct 2021 07:54:25 +0000 (09:54 +0200)
[ Upstream commit 66d262804a2276721eac86cf18fcd61046149193 ]

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: 82a04c5f5814 ("net: dsa: Add Lantiq / Intel DSA driver for vrx200")
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/lantiq_gswip.c

index 3225de0f655f2c36990a322466a3c810edb675c3..60e36f46f8abea28a76c580cdf1ffe24ce49f0af 100644 (file)
 #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