]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: airoha: Fix PPE_IP_PROTO_CHK register definitions
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 18 Sep 2025 06:59:41 +0000 (08:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 Sep 2025 14:09:18 +0000 (07:09 -0700)
Fix typo in PPE_IP_PROTO_CHK_IPV4_MASK and PPE_IP_PROTO_CHK_IPV6_MASK
register mask definitions. This is not a real problem since this
register is not actually used in the current codebase.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_regs.h

index 150c85995cc1a71d2d7eac58b75f27c19d26e2b5..e1c15c20be8e13197de743d9b590dc80058560a5 100644 (file)
 #define PPE_FLOW_CFG_IP4_TCP_FRAG_MASK         BIT(6)
 
 #define REG_PPE_IP_PROTO_CHK(_n)               (((_n) ? PPE2_BASE : PPE1_BASE) + 0x208)
-#define PPE_IP_PROTO_CHK_IPV4_MASK             GENMASK(15, 0)
-#define PPE_IP_PROTO_CHK_IPV6_MASK             GENMASK(31, 16)
+#define PPE_IP_PROTO_CHK_IPV4_MASK             GENMASK(31, 16)
+#define PPE_IP_PROTO_CHK_IPV6_MASK             GENMASK(15, 0)
 
 #define REG_PPE_TB_CFG(_n)                     (((_n) ? PPE2_BASE : PPE1_BASE) + 0x21c)
 #define PPE_SRAM_TB_NUM_ENTRY_MASK             GENMASK(26, 24)