Skip to contentSkip to conversation

net/ethernet: fix typo in annotation comment

PATCH In review Jun Miao 3 participants 4 messages Dec 5, 2024 – Dec 6, 2024

Subsystems (3)
lore
Share & tools
lore

Jun Miao

author
#0 lore raw

PATCH 1/1 net/ethernet: fix typo in annotation comment

It`s "auto-negotiation", not "auto-negotitation". Let's fix that.

---
 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c  | 2 +-
 drivers/net/ethernet/intel/igb/e1000_mac.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c +1 -1
index 07f4f3418d01..5597e7df0aba 100644
@@ -1264,7 +1264,7 @@ static int __xgbe_phy_config_aneg(struct xgbe_prv_data *pdata, bool set_mode)
 	/* Disable and stop any in progress auto-negotiation */
 	xgbe_an_disable_all(pdata);
 
-	/* Clear any auto-negotitation interrupts */
+	/* Clear any auto-negotiation interrupts */
 	xgbe_an_clear_interrupts_all(pdata);
 
 	pdata->an_result = XGBE_AN_READY;
drivers/net/ethernet/intel/igb/e1000_mac.c +1 -1
index fa3dfafd2bb1..2bcce6eef0c7 100644
@@ -1581,7 +1581,7 @@ s32 igb_disable_pcie_master(struct e1000_hw *hw)
  *  igb_validate_mdi_setting - Verify MDI/MDIx settings
  *  @hw: pointer to the HW structure
  *
- *  Verify that when not using auto-negotitation that MDI/MDIx is correctly
+ *  Verify that when not using auto-negotiation that MDI/MDIx is correctly
  *  set, which is forced to MDI mode only.
  **/
 s32 igb_validate_mdi_setting(struct e1000_hw *hw)
Signature · 1 line
2.32.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Jun Miao

It`s "auto-negotiation", not "auto-negotitation". Let's fix that.

---
  drivers/net/ethernet/amd/xgbe/xgbe-mdio.c  | 2 +-
  drivers/net/ethernet/intel/igb/e1000_mac.c | 2 +-

for the igb:

Quoted 1 line
  2 files changed, 2 insertions(+), 2 deletions(-)

you could fix also (perhaps as another commit):
arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts:273: * SGMII Auto-Negotation is enabled by bootloader for

nit:
I would also put "about auto-negotiation" at the end of commit message, to make it unique

Quoted 27 lines
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c +1 -1
index 07f4f3418d01..5597e7df0aba 100644
@@ -1264,7 +1264,7 @@ static int __xgbe_phy_config_aneg(struct xgbe_prv_data *pdata, bool set_mode)
  	/* Disable and stop any in progress auto-negotiation */
  	xgbe_an_disable_all(pdata);
 
-	/* Clear any auto-negotitation interrupts */
+	/* Clear any auto-negotiation interrupts */
  	xgbe_an_clear_interrupts_all(pdata);
 
  	pdata->an_result = XGBE_AN_READY;
drivers/net/ethernet/intel/igb/e1000_mac.c +1 -1
index fa3dfafd2bb1..2bcce6eef0c7 100644
@@ -1581,7 +1581,7 @@ s32 igb_disable_pcie_master(struct e1000_hw *hw)
   *  igb_validate_mdi_setting - Verify MDI/MDIx settings
   *  @hw: pointer to the HW structure
   *
- *  Verify that when not using auto-negotitation that MDI/MDIx is correctly
+ *  Verify that when not using auto-negotiation that MDI/MDIx is correctly
   *  set, which is forced to MDI mode only.
   **/
  s32 igb_validate_mdi_setting(struct e1000_hw *hw)
author
#2 lore raw
Quoted 11 lines · Przemek Kitszel
Quoted 6 lines · Jun Miao

It`s "auto-negotiation", not "auto-negotitation". Let's fix that.

---
  drivers/net/ethernet/amd/xgbe/xgbe-mdio.c  | 2 +- drivers/net/ethernet/intel/igb/e1000_mac.c | 2 +-

for the igb:

Quoted 8 lines
Quoted 1 line
  2 files changed, 2 insertions(+), 2 deletions(-)

you could fix also (perhaps as another commit):
arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts:273:     * SGMII Auto-Negotation is enabled by bootloader for

nit:
I would also put "about auto-negotiation" at the end of commit message, to make it unique

Nice, thank you. That is perfect to add "about auto-negotiation" in commit.

---Jun.miao

Quoted 30 lines
Quoted 29 lines
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c +0 -0
index 07f4f3418d01..5597e7df0aba 100644
@@ -1264,7 +1264,7 @@ static int __xgbe_phy_config_aneg(struct 
 xgbe_prv_data *pdata, bool set_mode)
       /* Disable and stop any in progress auto-negotiation */
       xgbe_an_disable_all(pdata);

  -    /* Clear any auto-negotitation interrupts */ +    /* Clear any auto-negotiation interrupts */ xgbe_an_clear_interrupts_all(pdata); pdata->an_result = XGBE_AN_READY;

drivers/net/ethernet/intel/igb/e1000_mac.c +0 -1
index fa3dfafd2bb1..2bcce6eef0c7 100644
@@ -1581,7 +1581,7 @@ s32 igb_disable_pcie_master(struct e1000_hw *hw)
    *  igb_validate_mdi_setting - Verify MDI/MDIx settings
    *  @hw: pointer to the HW structure
    *
- *  Verify that when not using auto-negotitation that MDI/MDIx is 

correctly
+ *  Verify that when not using auto-negotiation that MDI/MDIx is correctly
   *  set, which is forced to MDI mode only.
   **/
  s32 igb_validate_mdi_setting(struct e1000_hw *hw)

Acked-by on v1 1/1
#3 lore raw
In reply to Jun Miao
Quoted 2 lines · Jun Miao

It`s "auto-negotiation", not "auto-negotitation". Let's fix that.

Thanks!

Quoted 32 lines
---
 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c  | 2 +-
 drivers/net/ethernet/intel/igb/e1000_mac.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c +1 -1
index 07f4f3418d01..5597e7df0aba 100644
@@ -1264,7 +1264,7 @@ static int __xgbe_phy_config_aneg(struct xgbe_prv_data *pdata, bool set_mode)
 	/* Disable and stop any in progress auto-negotiation */
 	xgbe_an_disable_all(pdata);
 
-	/* Clear any auto-negotitation interrupts */
+	/* Clear any auto-negotiation interrupts */
 	xgbe_an_clear_interrupts_all(pdata);
 
 	pdata->an_result = XGBE_AN_READY;
drivers/net/ethernet/intel/igb/e1000_mac.c +1 -1
index fa3dfafd2bb1..2bcce6eef0c7 100644
@@ -1581,7 +1581,7 @@ s32 igb_disable_pcie_master(struct e1000_hw *hw)
  *  igb_validate_mdi_setting - Verify MDI/MDIx settings
  *  @hw: pointer to the HW structure
  *
- *  Verify that when not using auto-negotitation that MDI/MDIx is correctly
+ *  Verify that when not using auto-negotiation that MDI/MDIx is correctly
  *  set, which is forced to MDI mode only.
  **/
 s32 igb_validate_mdi_setting(struct e1000_hw *hw)