Patch "net: airoha: Fix wrong GDM4 register definition" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: airoha: Fix wrong GDM4 register definition

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-airoha-fix-wrong-gdm4-register-definition.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 1b2829b12e5f856f52d27eb0168c3c7cdb910573
Author: Christian Marangi <ansuelsmth@xxxxxxxxx>
Date:   Mon Jan 20 16:41:40 2025 +0100

    net: airoha: Fix wrong GDM4 register definition
    
    [ Upstream commit d31a49d37cb132b31cc6683eef2122f8609d6229 ]
    
    Fix wrong GDM4 register definition, in Airoha SDK GDM4 is defined at
    offset 0x2400 but this doesn't make sense as it does conflict with the
    CDM4 that is in the same location.
    
    Following the pattern where each GDM base is at the FWD_CFG, currently
    GDM4 base offset is set to 0x2500. This is correct but REG_GDM4_FWD_CFG
    and REG_GDM4_SRC_PORT_SET are still using the SDK reference with the
    0x2400 offset. Fix these 2 define by subtracting 0x100 to each register
    to reflect the real address location.
    
    Fixes: 23020f049327 ("net: airoha: Introduce ethernet support for EN7581 SoC")
    Signed-off-by: Christian Marangi <ansuelsmth@xxxxxxxxx>
    Acked-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx>
    Reviewed-by: Jacob Keller <jacob.e.keller@xxxxxxxxx>
    Link: https://patch.msgid.link/20250120154148.13424-1-ansuelsmth@xxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/mediatek/airoha_eth.c b/drivers/net/ethernet/mediatek/airoha_eth.c
index 8d9fb2a20469a..20cf7ba9d7508 100644
--- a/drivers/net/ethernet/mediatek/airoha_eth.c
+++ b/drivers/net/ethernet/mediatek/airoha_eth.c
@@ -258,11 +258,11 @@
 #define REG_GDM3_FWD_CFG		GDM3_BASE
 #define GDM3_PAD_EN_MASK		BIT(28)
 
-#define REG_GDM4_FWD_CFG		(GDM4_BASE + 0x100)
+#define REG_GDM4_FWD_CFG		GDM4_BASE
 #define GDM4_PAD_EN_MASK		BIT(28)
 #define GDM4_SPORT_OFFSET0_MASK		GENMASK(11, 8)
 
-#define REG_GDM4_SRC_PORT_SET		(GDM4_BASE + 0x33c)
+#define REG_GDM4_SRC_PORT_SET		(GDM4_BASE + 0x23c)
 #define GDM4_SPORT_OFF2_MASK		GENMASK(19, 16)
 #define GDM4_SPORT_OFF1_MASK		GENMASK(15, 12)
 #define GDM4_SPORT_OFF0_MASK		GENMASK(11, 8)




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux