]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: ethernet: ti-cpsw:: rename soft_reset() function
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Apr 2026 18:46:53 +0000 (20:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 Apr 2026 02:03:46 +0000 (19:03 -0700)
While looking at the glob symbols shared between the cpsw drivers,
I noticed that soft_reset() is the only one that is missing a proper
namespace prefix, and will pollute the kernel namespace, so rename
it to be consistent with the other symbols.

Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260402184726.3746487-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/cpsw_new.c
drivers/net/ethernet/ti/cpsw_priv.c
drivers/net/ethernet/ti/cpsw_priv.h

index b0e18bdc2c851086d6db6a3d7b9659c23c73b969..aa3531e844e871458cec0df01c230c5ddbec7364 100644 (file)
@@ -706,7 +706,7 @@ static void cpsw_init_host_port(struct cpsw_priv *priv)
        struct cpsw_common *cpsw = priv->cpsw;
 
        /* soft reset the controller and initialize ale */
-       soft_reset("cpsw", &cpsw->regs->soft_reset);
+       cpsw_soft_reset("cpsw", &cpsw->regs->soft_reset);
        cpsw_ale_start(cpsw->ale);
 
        /* switch to vlan aware mode */
index 7f42f58a4b031fab4c93680c153383e8eeb8f7f8..c5be359f3c663efcb18246c0e90822d283c2b095 100644 (file)
@@ -573,7 +573,7 @@ static void cpsw_init_host_port(struct cpsw_priv *priv)
        u32 control_reg;
 
        /* soft reset the controller and initialize ale */
-       soft_reset("cpsw", &cpsw->regs->soft_reset);
+       cpsw_soft_reset("cpsw", &cpsw->regs->soft_reset);
        cpsw_ale_start(cpsw->ale);
 
        /* switch to vlan aware mode */
index bc4fdf17a99ec0fcf3273e0243be2a0e4fa47861..c6eb6b785b0b5062af4c0805646eb39b6ecb5e7b 100644 (file)
@@ -275,7 +275,7 @@ void cpsw_set_slave_mac(struct cpsw_slave *slave, struct cpsw_priv *priv)
        slave_write(slave, mac_lo(priv->mac_addr), SA_LO);
 }
 
-void soft_reset(const char *module, void __iomem *reg)
+void cpsw_soft_reset(const char *module, void __iomem *reg)
 {
        unsigned long timeout = jiffies + HZ;
 
index acb6181c5c9e1bf6ed46a7fd14ce422efc0b724e..fddd7a79f4b0fb8e603bb9b4e79163fb2e443ea8 100644 (file)
@@ -458,7 +458,7 @@ int cpsw_tx_poll(struct napi_struct *napi_tx, int budget);
 int cpsw_rx_mq_poll(struct napi_struct *napi_rx, int budget);
 int cpsw_rx_poll(struct napi_struct *napi_rx, int budget);
 void cpsw_rx_vlan_encap(struct sk_buff *skb);
-void soft_reset(const char *module, void __iomem *reg);
+void cpsw_soft_reset(const char *module, void __iomem *reg);
 void cpsw_set_slave_mac(struct cpsw_slave *slave, struct cpsw_priv *priv);
 void cpsw_ndo_tx_timeout(struct net_device *ndev, unsigned int txqueue);
 int cpsw_need_resplit(struct cpsw_common *cpsw);