]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: fix compilation error from VIP backport patch
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 15 Apr 2026 12:38:08 +0000 (14:38 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 15 Apr 2026 12:39:35 +0000 (14:39 +0200)
It seems that upstream one of the patch had a compilation erro caused by
merging net and net-next and it was fixed silently in a merge commit.

Fix this error in the affected patch.

Fixes: 155c610962af ("airoha: backport additional patch for memory leak and multi-serdes rework")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/airoha/patches-6.12/141-v7.1-net-airoha-Fix-VIP-configuration-for-AN7583-SoC.patch

index 23dcf6e1cd1f43f8131191ed8d7d924de59b0aaa..6b659879b508ce6bfe46a6f4df47b6679d89952e 100644 (file)
@@ -63,6 +63,15 @@ Signed-off-by: Paolo Abeni <pabeni@redhat.com>
        if (src_port < 0)
                return src_port;
  
+@@ -1784,7 +1770,7 @@ static int airhoha_set_gdm2_loopback(str
+                     __field_prep(SP_CPORT_MASK(val), FE_PSE_PORT_CDM2));
+       if (port->id == AIROHA_GDM4_IDX && airoha_is_7581(eth)) {
+-              u32 mask = FC_ID_OF_SRC_PORT_MASK(nbq);
++              u32 mask = FC_ID_OF_SRC_PORT_MASK(port->nbq);
+               airoha_fe_rmw(eth, REG_SRC_PORT_FC_MAP6, mask,
+                             __field_prep(mask, AIROHA_GDM2_IDX));
 @@ -2962,6 +2948,8 @@ static int airoha_alloc_gdm_port(struct
        port->eth = eth;
        port->dev = dev;