|
Denis Kirjanov |
0a365b |
From 45045e3fdf80aeda04f48d65de9feecab09a7501 Mon Sep 17 00:00:00 2001
|
|
Denis Kirjanov |
0a365b |
From: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
|
|
Denis Kirjanov |
0a365b |
Date: Fri, 11 Jun 2021 15:16:11 +0800
|
|
Denis Kirjanov |
0a365b |
Subject: [PATCH 07/16] net: stmmac: dwmac1000: Fix extended MAC address
|
|
Denis Kirjanov |
0a365b |
registers definition
|
|
Denis Kirjanov |
0a365b |
Git-commit: 1adb20f0d496b2c61e9aa1f4761b8d71f93d258e
|
|
Denis Kirjanov |
0a365b |
Patch-mainline: v5.13-rc7
|
|
Denis Kirjanov |
0a365b |
References: git-fixes
|
|
Denis Kirjanov |
0a365b |
|
|
Denis Kirjanov |
0a365b |
The register starts from 0x800 is the 16th MAC address register rather
|
|
Denis Kirjanov |
0a365b |
than the first one.
|
|
Denis Kirjanov |
0a365b |
|
|
Denis Kirjanov |
0a365b |
Fixes: cffb13f4d6fb ("stmmac: extend mac addr reg and fix perfect filering")
|
|
Denis Kirjanov |
0a365b |
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
|
|
Denis Kirjanov |
0a365b |
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
Denis Kirjanov |
0a365b |
Signed-off-by: Denis Kirjanov <denis.kirjanov@suse.com>
|
|
Denis Kirjanov |
0a365b |
---
|
|
Denis Kirjanov |
0a365b |
drivers/net/ethernet/stmicro/stmmac/dwmac1000.h | 8 ++++----
|
|
Denis Kirjanov |
0a365b |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
Denis Kirjanov |
0a365b |
|
|
Denis Kirjanov |
0a365b |
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h b/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h
|
|
Denis Kirjanov |
0a365b |
index c02d36629c52..6f7ed3aaff1b 100644
|
|
Denis Kirjanov |
0a365b |
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h
|
|
Denis Kirjanov |
0a365b |
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h
|
|
Denis Kirjanov |
0a365b |
@@ -87,10 +87,10 @@ enum power_event {
|
|
Denis Kirjanov |
0a365b |
#define LPI_CTRL_STATUS_TLPIEN 0x00000001 /* Transmit LPI Entry */
|
|
Denis Kirjanov |
0a365b |
|
|
Denis Kirjanov |
0a365b |
/* GMAC HW ADDR regs */
|
|
Denis Kirjanov |
0a365b |
-#define GMAC_ADDR_HIGH(reg) (((reg > 15) ? 0x00000800 : 0x00000040) + \
|
|
Denis Kirjanov |
0a365b |
- (reg * 8))
|
|
Denis Kirjanov |
0a365b |
-#define GMAC_ADDR_LOW(reg) (((reg > 15) ? 0x00000804 : 0x00000044) + \
|
|
Denis Kirjanov |
0a365b |
- (reg * 8))
|
|
Denis Kirjanov |
0a365b |
+#define GMAC_ADDR_HIGH(reg) ((reg > 15) ? 0x00000800 + (reg - 16) * 8 : \
|
|
Denis Kirjanov |
0a365b |
+ 0x00000040 + (reg * 8))
|
|
Denis Kirjanov |
0a365b |
+#define GMAC_ADDR_LOW(reg) ((reg > 15) ? 0x00000804 + (reg - 16) * 8 : \
|
|
Denis Kirjanov |
0a365b |
+ 0x00000044 + (reg * 8))
|
|
Denis Kirjanov |
0a365b |
#define GMAC_MAX_PERFECT_ADDRESSES 1
|
|
Denis Kirjanov |
0a365b |
|
|
Denis Kirjanov |
0a365b |
#define GMAC_PCS_BASE 0x000000c0 /* PCS register base */
|
|
Denis Kirjanov |
0a365b |
--
|
|
Denis Kirjanov |
0a365b |
2.16.4
|
|
Denis Kirjanov |
0a365b |
|