]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: eth: add init_mac() for RTL930x
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 4 Jan 2026 20:00:33 +0000 (21:00 +0100)
committerStijn Tintel <stijn@linux-ipv6.be>
Fri, 9 Jan 2026 19:03:04 +0000 (21:03 +0200)
This function does nothing at the moment. Simply add it for
completeness.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21391
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c

index 6a5cac510fa3bc7725db81d3d90f944c91aa821a..81a47d6a2266b32e2d9a2955cad0c174a0bc77bd 100644 (file)
@@ -1345,6 +1345,11 @@ static int rtl8390_init_mac(struct rtl838x_eth_priv *priv)
        return 0;
 }
 
+static int rteth_930x_init_mac(struct rtl838x_eth_priv *priv)
+{
+       return 0;
+}
+
 static int rtl931x_chip_init(struct rtl838x_eth_priv *priv)
 {
        pr_info("In %s\n", __func__);
@@ -1715,6 +1720,8 @@ static int __init rtl838x_eth_probe(struct platform_device *pdev)
                rtl8380_init_mac(priv);
        else if (priv->r->family_id == RTL8390_FAMILY_ID)
                rtl8390_init_mac(priv);
+       else if (priv->r->family_id == RTL9300_FAMILY_ID)
+               rteth_930x_init_mac(priv);
        else if (priv->r->family_id == RTL9310_FAMILY_ID)
                rtl931x_chip_init(priv);