]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mt76: mt7921: fix the base of the dynamic remap
authorSean Wang <sean.wang@mediatek.com>
Fri, 26 Feb 2021 08:23:27 +0000 (16:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:52:52 +0000 (10:52 +0200)
[ Upstream commit 53a8fb4afdc877f8f2d5e1e15cc5ad66155987a6 ]

We should change the base for the dynamic remap into another one, because
the current base (0xe0000) have been the one used to operate the device
ownership.

Fixes: 163f4d22c118 ("mt76: mt7921: add MAC support")
Co-developed-by: YN Chen <YN.Chen@mediatek.com>
Signed-off-by: YN Chen <YN.Chen@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7921/regs.h

index e7bb918446ee2ca48b544c9188bd9c18e55f0043..73878d3e249514b8752a27b73aed69f38082b8a3 100644 (file)
 #define MT_INFRA_CFG_BASE              0xfe000
 #define MT_INFRA(ofs)                  (MT_INFRA_CFG_BASE + (ofs))
 
-#define MT_HIF_REMAP_L1                        MT_INFRA(0x260)
+#define MT_HIF_REMAP_L1                        MT_INFRA(0x24c)
 #define MT_HIF_REMAP_L1_MASK           GENMASK(15, 0)
 #define MT_HIF_REMAP_L1_OFFSET         GENMASK(15, 0)
 #define MT_HIF_REMAP_L1_BASE           GENMASK(31, 16)
-#define MT_HIF_REMAP_BASE_L1           0xe0000
+#define MT_HIF_REMAP_BASE_L1           0x40000
 
 #define MT_SWDEF_BASE                  0x41f200
 #define MT_SWDEF(ofs)                  (MT_SWDEF_BASE + (ofs))