From: Markus Stockhausen Date: Sat, 14 Mar 2026 12:14:55 +0000 (+0100) Subject: realtek: eth: adapt prefix of hw_stop() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc4e1dcd07db9422bd78017a84cd222895d40e68;p=thirdparty%2Fopenwrt.git realtek: eth: adapt prefix of hw_stop() 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 Link: https://github.com/openwrt/openwrt/pull/22421 Signed-off-by: Robert Marko --- diff --git a/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c b/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c index fcd7fccfff7..b62a341b256 100644 --- a/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c +++ b/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c @@ -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);