net: dsa: microchip: Add missing MAC address register offset for ksz8863
authorOleksij Rempel <o.rempel@pengutronix.de>
Mon, 23 Oct 2023 09:33:35 +0000 (11:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Oct 2023 07:47:33 +0000 (08:47 +0100)
Add the missing offset for the global MAC address register
(REG_SW_MAC_ADDR) for the ksz8863 family of switches.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz_common.c

index a8025ff988ecd43d86b33e3d0cd17addd86cef70..e3f797cab8366a18939387fd9603738627bd8453 100644 (file)
@@ -441,6 +441,7 @@ static const u8 ksz8795_shifts[] = {
 };
 
 static const u16 ksz8863_regs[] = {
+       [REG_SW_MAC_ADDR]               = 0x70,
        [REG_IND_CTRL_0]                = 0x79,
        [REG_IND_DATA_8]                = 0x7B,
        [REG_IND_DATA_CHECK]            = 0x7B,