diff options
| author | Markus Stockhausen | 2026-01-24 21:43:33 +0000 |
|---|---|---|
| committer | Robert Marko | 2026-01-25 21:18:48 +0000 |
| commit | cf51728467c42a4bd901b3ec7d791b67cc86f5ac (patch) | |
| tree | 516ea2aa5dd9b1520a7e8746ec84aa649c5290ee | |
| parent | 7b89702504a3f392f9f82337cb769dcc6f78c305 (diff) | |
| download | openwrt-cf51728467c42a4bd901b3ec7d791b67cc86f5ac.tar.gz | |
realtek: eth: use new prefix for ring operations
Align the functions with rest of driver.
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21685
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 3eeeb2cd01..76e3c3d623 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 @@ -523,7 +523,7 @@ static void rteth_93xx_hw_reset(struct rteth_ctrl *ctrl) } } -static void rtl838x_hw_ring_setup(struct rteth_ctrl *ctrl) +static void rteth_hw_ring_setup(struct rteth_ctrl *ctrl) { struct ring_b *ring = ctrl->membase; @@ -624,7 +624,7 @@ static void rtl93xx_hw_en_rxtx(struct rteth_ctrl *ctrl) sw_w32(0x2a1d, ctrl->r->mac_force_mode_ctrl + ctrl->r->cpu_port * 4); } -static void rtl838x_setup_ring_buffer(struct rteth_ctrl *ctrl, struct ring_b *ring) +static void rteth_setup_ring_buffer(struct rteth_ctrl *ctrl, struct ring_b *ring) { for (int i = 0; i < ctrl->rxrings; i++) { struct p_hdr *h; @@ -694,7 +694,7 @@ static int rteth_open(struct net_device *ndev) spin_lock_irqsave(&ctrl->lock, flags); ctrl->r->hw_reset(ctrl); - rtl838x_setup_ring_buffer(ctrl, ring); + rteth_setup_ring_buffer(ctrl, ring); if (ctrl->r->family_id == RTL8390_FAMILY_ID) { rtl839x_setup_notify_ring_buffer(ctrl); /* Make sure the ring structure is visible to the ASIC */ @@ -702,7 +702,7 @@ static int rteth_open(struct net_device *ndev) flush_cache_all(); } - rtl838x_hw_ring_setup(ctrl); + rteth_hw_ring_setup(ctrl); phylink_start(ctrl->phylink); for (int i = 0; i < ctrl->rxrings; i++) @@ -920,7 +920,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); - rtl838x_hw_ring_setup(ctrl); + rteth_hw_ring_setup(ctrl); rtl838x_hw_en_rxtx(ctrl); netif_trans_update(ndev); netif_start_queue(ndev); |