Netdev List
 help / color / mirror / Atom feed
From: Jijie Shao <shaojijie@huawei.com>
To: <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>,
	<pabeni@redhat.com>, <andrew+netdev@lunn.ch>, <horms@kernel.org>
Cc: <shenjian15@huawei.com>, <liuyonglong@huawei.com>,
	<chenhao418@huawei.com>, <yangshuaisong@h-partners.com>,
	<ningwei15@huawei.com>, <netdev@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <shaojijie@huawei.com>
Subject: [PATCH net-next] net: hibmcge: fix spelling mistakes in comments and identifiers
Date: Tue, 15 Sep 2026 21:23:41 +0800	[thread overview]
Message-ID: <20260915132341.1138610-1-shaojijie@huawei.com> (raw)

Fix several typos found in the driver:

  - hbg_irq.c:    macro parameter "ndde_reset" -> "need_reset"
  - hbg_txrx.c:   macro "hbg_queue_next_prt" -> "hbg_queue_next_ptr"
                  (and its call sites)
  - hbg_txrx.c:   function "hbg_ring_page_pool_destory" ->
                  "hbg_ring_page_pool_destroy"
  - hbg_common.h: comment "after rest" -> "after reset"
  - hbg_reg.h:    register macro "HBG_REG_BRUST_LENGTH_*" ->
                  "HBG_REG_BURST_LENGTH_*" (and references in hbg_hw.c)

No functional changes.

Signed-off-by: Jijie Shao <shaojijie@huawei.com>
---
 drivers/net/ethernet/hisilicon/hibmcge/hbg_common.h |  2 +-
 drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c     |  4 ++--
 drivers/net/ethernet/hisilicon/hibmcge/hbg_irq.c    |  4 ++--
 drivers/net/ethernet/hisilicon/hibmcge/hbg_reg.h    |  4 ++--
 drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c   | 12 ++++++------
 5 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/drivers/net/ethernet/hisilicon/hibmcge/hbg_common.h b/drivers/net/ethernet/hisilicon/hibmcge/hbg_common.h
index 8e134da3e217..9ca04909774d 100644
--- a/drivers/net/ethernet/hisilicon/hibmcge/hbg_common.h
+++ b/drivers/net/ethernet/hisilicon/hibmcge/hbg_common.h
@@ -152,7 +152,7 @@ struct hbg_mac_filter {
 	bool enabled;
 };
 
-/* saved for restore after rest */
+/* saved for restore after reset */
 struct hbg_user_def {
 	struct ethtool_pauseparam pause_param;
 };
diff --git a/drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c b/drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c
index d6e8ce8e351a..54ed1c17bc2d 100644
--- a/drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c
+++ b/drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c
@@ -190,8 +190,8 @@ void hbg_hw_set_mtu(struct hbg_priv *priv, u16 mtu)
 	hbg_hw_set_pcu_max_frame_len(priv, frame_len);
 	hbg_hw_set_mac_max_frame_len(priv, frame_len);
 
-	hbg_reg_write_field(priv, HBG_REG_BRUST_LENGTH_ADDR,
-			    HBG_REG_BRUST_LENGTH_B, burst_len_bit);
+	hbg_reg_write_field(priv, HBG_REG_BURST_LENGTH_ADDR,
+			    HBG_REG_BURST_LENGTH_B, burst_len_bit);
 }
 
 void hbg_hw_mac_enable(struct hbg_priv *priv, u32 enable)
diff --git a/drivers/net/ethernet/hisilicon/hibmcge/hbg_irq.c b/drivers/net/ethernet/hisilicon/hibmcge/hbg_irq.c
index ae4cb35186d8..2d67c7557b72 100644
--- a/drivers/net/ethernet/hisilicon/hibmcge/hbg_irq.c
+++ b/drivers/net/ethernet/hisilicon/hibmcge/hbg_irq.c
@@ -37,9 +37,9 @@ static void hbg_irq_handle_rx_buf_val(struct hbg_priv *priv,
 
 #define HBG_IRQ_I(name, handle) \
 	{#name, HBG_INT_MSK_##name##_B, false, false, false, handle}
-#define HBG_ERR_IRQ_I(name, need_print, ndde_reset) \
+#define HBG_ERR_IRQ_I(name, need_print, need_reset) \
 	{#name, HBG_INT_MSK_##name##_B, true, need_print, \
-	ndde_reset, hbg_irq_handle_err}
+	need_reset, hbg_irq_handle_err}
 
 static const struct hbg_irq_info hbg_irqs[] = {
 	HBG_IRQ_I(RX, hbg_irq_handle_rx),
diff --git a/drivers/net/ethernet/hisilicon/hibmcge/hbg_reg.h b/drivers/net/ethernet/hisilicon/hibmcge/hbg_reg.h
index 30b3903c8f2d..0d2554ca3b5f 100644
--- a/drivers/net/ethernet/hisilicon/hibmcge/hbg_reg.h
+++ b/drivers/net/ethernet/hisilicon/hibmcge/hbg_reg.h
@@ -191,8 +191,8 @@
 #define HBG_REG_TX_CFF_ADDR_2_ADDR		(HBG_REG_SGMII_BASE + 0x0490)
 #define HBG_REG_TX_CFF_ADDR_3_ADDR		(HBG_REG_SGMII_BASE + 0x0494)
 #define HBG_REG_RX_CFF_ADDR_ADDR		(HBG_REG_SGMII_BASE + 0x04A0)
-#define HBG_REG_BRUST_LENGTH_ADDR		(HBG_REG_SGMII_BASE + 0x04C4)
-#define HBG_REG_BRUST_LENGTH_B			BIT(29)
+#define HBG_REG_BURST_LENGTH_ADDR		(HBG_REG_SGMII_BASE + 0x04C4)
+#define HBG_REG_BURST_LENGTH_B			BIT(29)
 #define HBG_REG_RX_BUF_SIZE_ADDR		(HBG_REG_SGMII_BASE + 0x04E4)
 #define HBG_REG_RX_BUF_SIZE_M			GENMASK(15, 0)
 #define HBG_REG_BUS_CTRL_ADDR			(HBG_REG_SGMII_BASE + 0x04E8)
diff --git a/drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c b/drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c
index 207ada721dd9..2ea025fd964f 100644
--- a/drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c
+++ b/drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c
@@ -26,10 +26,10 @@
 	(hbg_queue_used_num((head), (tail), (ring)) == 0)
 #define hbg_queue_is_full(head, tail, ring) \
 	(hbg_queue_left_num((head), (tail), (ring)) == 0)
-#define hbg_queue_next_prt(p, ring) (((p) + 1) % (ring)->len)
+#define hbg_queue_next_ptr(p, ring) (((p) + 1) % (ring)->len)
 #define hbg_queue_move_next(p, ring) ({ \
 	typeof(ring) _ring = (ring); \
-	_ring->p = hbg_queue_next_prt(_ring->p, _ring); })
+	_ring->p = hbg_queue_next_ptr(_ring->p, _ring); })
 
 #define hbg_get_page_order(ring) ({ \
 	typeof(ring) _ring = (ring); \
@@ -167,7 +167,7 @@ netdev_tx_t hbg_net_start_xmit(struct sk_buff *skb, struct net_device *netdev)
 	/* This smp_store_release() pairs with smp_load_acquire() in
 	 * hbg_napi_tx_recycle() called in tx interrupt handle process.
 	 */
-	smp_store_release(&ring->ntu, hbg_queue_next_prt(ntu, ring));
+	smp_store_release(&ring->ntu, hbg_queue_next_ptr(ntu, ring));
 	dev_sw_netstats_tx_add(netdev, 1, skb->len);
 	return NETDEV_TX_OK;
 }
@@ -220,7 +220,7 @@ static int hbg_napi_tx_recycle(struct napi_struct *napi, int budget)
 			break;
 
 		hbg_buffer_free(buffer);
-		ntc = hbg_queue_next_prt(ntc, ring);
+		ntc = hbg_queue_next_ptr(ntc, ring);
 		packet_done++;
 	}
 
@@ -535,7 +535,7 @@ static int hbg_napi_rx_poll(struct napi_struct *napi, int budget)
 	return packet_done;
 }
 
-static void hbg_ring_page_pool_destory(struct hbg_ring *ring)
+static void hbg_ring_page_pool_destroy(struct hbg_ring *ring)
 {
 	if (!ring->page_pool)
 		return;
@@ -589,7 +589,7 @@ static void hbg_ring_uninit(struct hbg_ring *ring)
 		buffer->priv = NULL;
 	}
 
-	hbg_ring_page_pool_destory(ring);
+	hbg_ring_page_pool_destroy(ring);
 	dma_free_coherent(&ring->priv->pdev->dev,
 			  ring->len * sizeof(*ring->queue),
 			  ring->queue, ring->queue_dma);

base-commit: 348ea4642f56ab3dc93621c8e3ab0ccd0e5f1782
-- 
2.43.0


             reply	other threads:[~2026-09-15 13:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-15 13:23 Jijie Shao [this message]
2026-09-20  0:10 ` [PATCH net-next] net: hibmcge: fix spelling mistakes in comments and identifiers patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260915132341.1138610-1-shaojijie@huawei.com \
    --to=shaojijie@huawei.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=chenhao418@huawei.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liuyonglong@huawei.com \
    --cc=netdev@vger.kernel.org \
    --cc=ningwei15@huawei.com \
    --cc=pabeni@redhat.com \
    --cc=shenjian15@huawei.com \
    --cc=yangshuaisong@h-partners.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox