Skip to contentSkip to conversation

net: ethernet: xilinx: cleanup comments

PATCH In review [email protected] 4 participants 4 messages Feb 15, 2022 – Feb 16, 2022

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ethernet: xilinx: cleanup comments

From: Tom Rix <[email protected]>

Remove the second 'the'.
Replacements:
endiannes to endianness
areconnected to are connected
Mamagement to Management
undoccumented to undocumented
Xilink to Xilinx
strucutre to structure

---
 drivers/net/ethernet/xilinx/Kconfig               | 2 +-
 drivers/net/ethernet/xilinx/ll_temac.h            | 4 ++--
 drivers/net/ethernet/xilinx/ll_temac_main.c       | 2 +-
 drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +-
 drivers/net/ethernet/xilinx/xilinx_emaclite.c     | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
drivers/net/ethernet/xilinx/Kconfig +1 -1
index 911b5ef9e680..0014729b8865 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 #
-# Xilink device configuration
+# Xilinx device configuration
 #
 
 config NET_VENDOR_XILINX
drivers/net/ethernet/xilinx/ll_temac.h +2 -2
index 4a73127e10a6..ad8d29f84be6 100644
@@ -271,7 +271,7 @@ This option defaults to enabled (set) */
 
 #define XTE_TIE_OFFSET			0x000003A4 /* Interrupt enable */
 
-/**  MII Mamagement Control register (MGTCR) */
+/**  MII Management Control register (MGTCR) */
 #define XTE_MGTDR_OFFSET		0x000003B0 /* MII data */
 #define XTE_MIIMAI_OFFSET		0x000003B4 /* MII control */
 
@@ -283,7 +283,7 @@ This option defaults to enabled (set) */
 
 #define STS_CTRL_APP0_ERR         (1 << 31)
 #define STS_CTRL_APP0_IRQONEND    (1 << 30)
-/* undoccumented */
+/* undocumented */
 #define STS_CTRL_APP0_STOPONEND   (1 << 29)
 #define STS_CTRL_APP0_CMPLT       (1 << 28)
 #define STS_CTRL_APP0_SOP         (1 << 27)
drivers/net/ethernet/xilinx/ll_temac_main.c +1 -1
index b900ab5aef2a..7171b5cdec26 100644
@@ -1008,7 +1008,7 @@ static void ll_temac_recv(struct net_device *ndev)
 		    (skb->len > 64)) {
 
 			/* Convert from device endianness (be32) to cpu
-			 * endiannes, and if necessary swap the bytes
+			 * endianness, and if necessary swap the bytes
 			 * (back) for proper IP checksum byte order
 			 * (be16).
 			 */
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +1 -1
index de0a6372ae0e..6eeaab77fbe0 100644
@@ -537,7 +537,7 @@ static int __axienet_device_reset(struct axienet_local *lp)
  * This function is called to reset and initialize the Axi Ethernet core. This
  * is typically called during initialization. It does a reset of the Axi DMA
  * Rx/Tx channels and initializes the Axi DMA BDs. Since Axi DMA reset lines
- * areconnected to Axi Ethernet reset lines, this in turn resets the Axi
+ * are connected to Axi Ethernet reset lines, this in turn resets the Axi
  * Ethernet core. No separate hardware reset is done for the Axi Ethernet
  * core.
  * Returns 0 on success or a negative error number otherwise.
drivers/net/ethernet/xilinx/xilinx_emaclite.c +1 -1
index 519599480b15..f65a638b7239 100644
@@ -498,7 +498,7 @@ static void xemaclite_update_address(struct net_local *drvdata,
  * @dev:	Pointer to the network device instance
  * @address:	Void pointer to the sockaddr structure
  *
- * This function copies the HW address from the sockaddr strucutre to the
+ * This function copies the HW address from the sockaddr structure to the
  * net_device structure and updates the address in HW.
  *
  * Return:	Error if the net device is busy or 0 if the addr is set
Signature · 1 line
2.26.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · On 2/15/22 11:04, [email protected] wrote:

From: Tom Rix <[email protected]>

Remove the second 'the'.
Replacements:
endiannes to endianness
areconnected to are connected
Mamagement to Management
undoccumented to undocumented
Xilink to Xilinx
strucutre to structure

Quoted 1 line

thanks.

Quoted 7 lines
---
 drivers/net/ethernet/xilinx/Kconfig               | 2 +-
 drivers/net/ethernet/xilinx/ll_temac.h            | 4 ++--
 drivers/net/ethernet/xilinx/ll_temac_main.c       | 2 +-
 drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +-
 drivers/net/ethernet/xilinx/xilinx_emaclite.c     | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
~Randy
Reviewed-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 24 lines

-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, February 16, 2022 12:35 AM
To: [email protected]; [email protected]; Michal Simek <[email protected]>; Radhey Shyam Pandey <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; linux- [email protected]; Tom Rix <[email protected]>
Subject: [PATCH] net: ethernet: xilinx: cleanup comments

From: Tom Rix <[email protected]>

Remove the second 'the'.
Replacements:
endiannes to endianness
areconnected to are connected
Mamagement to Management
undoccumented to undocumented
Xilink to Xilinx
strucutre to structure

Quoted 1 line

Thanks!

Quoted 91 lines
---
 drivers/net/ethernet/xilinx/Kconfig               | 2 +-
 drivers/net/ethernet/xilinx/ll_temac.h            | 4 ++--
 drivers/net/ethernet/xilinx/ll_temac_main.c       | 2 +-
 drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +-
 drivers/net/ethernet/xilinx/xilinx_emaclite.c     | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
drivers/net/ethernet/xilinx/Kconfig +1 -0
index 911b5ef9e680..0014729b8865 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only  # -# Xilink device configuration
+# Xilinx device configuration
 #
 
 config NET_VENDOR_XILINX
drivers/net/ethernet/xilinx/ll_temac.h +0 -0
index 4a73127e10a6..ad8d29f84be6 100644
@@ -271,7 +271,7 @@ This option defaults to enabled (set) */
 
 #define XTE_TIE_OFFSET			0x000003A4 /* Interrupt

enable */

drivers/net/ethernet/xilinx/ll_temac.h +2 -2
-/**  MII Mamagement Control register (MGTCR) */
+/**  MII Management Control register (MGTCR) */
 #define XTE_MGTDR_OFFSET		0x000003B0 /* MII data */
 #define XTE_MIIMAI_OFFSET		0x000003B4 /* MII control */
@@ -283,7 +283,7 @@ This option defaults to enabled (set) */
 
 #define STS_CTRL_APP0_ERR         (1 << 31)
 #define STS_CTRL_APP0_IRQONEND    (1 << 30)
-/* undoccumented */
+/* undocumented */
 #define STS_CTRL_APP0_STOPONEND   (1 << 29)
 #define STS_CTRL_APP0_CMPLT       (1 << 28)
 #define STS_CTRL_APP0_SOP         (1 << 27)
drivers/net/ethernet/xilinx/ll_temac_main.c +1 -1
index b900ab5aef2a..7171b5cdec26 100644
@@ -1008,7 +1008,7 @@ static void ll_temac_recv(struct net_device *ndev)
 		    (skb->len > 64)) {
 
 			/* Convert from device endianness (be32) to cpu
-			 * endiannes, and if necessary swap the bytes
+			 * endianness, and if necessary swap the bytes
 			 * (back) for proper IP checksum byte order
 			 * (be16).
 			 */
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +2 -1
index de0a6372ae0e..6eeaab77fbe0 100644
@@ -537,7 +537,7 @@ static int __axienet_device_reset(struct axienet_local
 *lp)
  * This function is called to reset and initialize the Axi Ethernet core. This
  * is typically called during initialization. It does a reset of the Axi DMA
  * Rx/Tx channels and initializes the Axi DMA BDs. Since Axi DMA reset lines
- * areconnected to Axi Ethernet reset lines, this in turn resets the Axi
+ * are connected to Axi Ethernet reset lines, this in turn resets the
+ Axi
  * Ethernet core. No separate hardware reset is done for the Axi Ethernet
  * core.
  * Returns 0 on success or a negative error number otherwise.
drivers/net/ethernet/xilinx/xilinx_emaclite.c +2 -2
index 519599480b15..f65a638b7239 100644
@@ -498,7 +498,7 @@ static void xemaclite_update_address(struct net_local
 *drvdata,
  * @dev:	Pointer to the network device instance
  * @address:	Void pointer to the sockaddr structure
  *
- * This function copies the HW address from the sockaddr strucutre to the
+ * This function copies the HW address from the sockaddr structure to
+ the
  * net_device structure and updates the address in HW.
  *
  * Return:	Error if the net device is busy or 0 if the addr is set
--

2.26.3

Reviewed-by on v1 1/1
#3 lore raw
In reply to [email protected]
Quoted 37 lines · On 2/15/22 20:04, [email protected] wrote:

From: Tom Rix <[email protected]>

Remove the second 'the'.
Replacements:
endiannes to endianness
areconnected to are connected
Mamagement to Management
undoccumented to undocumented
Xilink to Xilinx
strucutre to structure

---
  drivers/net/ethernet/xilinx/Kconfig               | 2 +-
  drivers/net/ethernet/xilinx/ll_temac.h            | 4 ++--
  drivers/net/ethernet/xilinx/ll_temac_main.c       | 2 +-
  drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +-
  drivers/net/ethernet/xilinx/xilinx_emaclite.c     | 2 +-
  5 files changed, 6 insertions(+), 6 deletions(-)
drivers/net/ethernet/xilinx/Kconfig +1 -1
index 911b5ef9e680..0014729b8865 100644
@@ -1,6 +1,6 @@
  # SPDX-License-Identifier: GPL-2.0-only
  #
-# Xilink device configuration
+# Xilinx device configuration
  #
 
  config NET_VENDOR_XILINX
drivers/net/ethernet/xilinx/ll_temac.h +0 -0
index 4a73127e10a6..ad8d29f84be6 100644

drivers/net/ethernet/xilinx/ll_temac.h This option defaults to enabled (set) */ · line 274

Quoted 5 lines
drivers/net/ethernet/xilinx/ll_temac.h +1 -1
@@ -271,7 +271,7 @@ This option defaults to enabled (set) */
 
  #define XTE_TIE_OFFSET			0x000003A4 /* Interrupt enable */
 
-/**  MII Mamagement Control register (MGTCR) */
+/**  MII Management Control register (MGTCR) */

When you touch this you should remove /** which points to kernel-doc format.

When fixed you can add my

Thanks,
Michal