]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: eth: adapt prefix of hw_stop()
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sat, 14 Mar 2026 12:14:55 +0000 (13:14 +0100)
committerRobert Marko <robimarko@gmail.com>
Wed, 25 Mar 2026 09:26:44 +0000 (10:26 +0100)
rtl838x_hw_stop() still uses the old prefix. Change it "rteth"
and make clear that this is a generic function for all targets.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22421
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c

index fcd7fccfff77d5cfb96068e4564428897aa6cdd7..b62a341b256775ce87188b093001a37db0d1f380 100644 (file)
@@ -731,7 +731,7 @@ static int rteth_open(struct net_device *ndev)
        return 0;
 }
 
-static void rtl838x_hw_stop(struct rteth_ctrl *ctrl)
+static void rteth_hw_stop(struct rteth_ctrl *ctrl)
 {
        u32 force_mac = ctrl->r->family_id == RTL8380_FAMILY_ID ? 0x6192C : 0x75;
 
@@ -788,7 +788,7 @@ static int rteth_stop(struct net_device *ndev)
        pr_info("in %s\n", __func__);
 
        phylink_stop(ctrl->phylink);
-       rtl838x_hw_stop(ctrl);
+       rteth_hw_stop(ctrl);
 
        for (int i = 0; i < RTETH_RX_RINGS; i++)
                napi_disable(&ctrl->rx_qs[i].napi);
@@ -884,7 +884,7 @@ static void rteth_tx_timeout(struct net_device *ndev, unsigned int txqueue)
 
        pr_warn("%s\n", __func__);
        spin_lock_irqsave(&ctrl->lock, flags);
-       rtl838x_hw_stop(ctrl);
+       rteth_hw_stop(ctrl);
        rteth_hw_ring_setup(ctrl);
        rtl838x_hw_en_rxtx(ctrl);
        netif_trans_update(ndev);
@@ -1597,7 +1597,7 @@ static void rtl838x_eth_remove(struct platform_device *pdev)
 
        if (dev) {
                pr_info("Removing platform driver for rtl838x-eth\n");
-               rtl838x_hw_stop(ctrl);
+               rteth_hw_stop(ctrl);
 
                netif_tx_stop_all_queues(dev);