]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: airoha: Rename airoha_set_gdm2_loopback in airoha_enable_gdm2_loopback
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 27 May 2026 10:21:20 +0000 (12:21 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Jun 2026 20:24:26 +0000 (13:24 -0700)
This is a preliminary patch in order to allow the user to select if the
configured device will be used as hw lan or wan.
Please not this patch does not introduce any logical changes, just
cosmetic ones.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260527-airoha-eth-multi-serdes-preliminary-v1-6-ec6ed73ef7fc@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_eth.c

index 72c6f554508cefce4d75e4ce657ff71ebff651f4..6574901ebd19be31052271c7ee25614309e95813 100644 (file)
@@ -1796,7 +1796,7 @@ static int airoha_dev_set_macaddr(struct net_device *netdev, void *p)
        return 0;
 }
 
-static int airoha_set_gdm2_loopback(struct airoha_gdm_dev *dev)
+static int airoha_enable_gdm2_loopback(struct airoha_gdm_dev *dev)
 {
        struct airoha_gdm_port *port = dev->port;
        struct airoha_eth *eth = dev->eth;
@@ -1877,7 +1877,7 @@ static int airoha_dev_init(struct net_device *netdev)
                if (!eth->ports[1]) {
                        int err;
 
-                       err = airoha_set_gdm2_loopback(dev);
+                       err = airoha_enable_gdm2_loopback(dev);
                        if (err)
                                return err;
                }