net: lan966x: Correct spelling in comments
authorSimon Horman <horms@kernel.org>
Wed, 24 Apr 2024 15:13:24 +0000 (16:13 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Apr 2024 02:13:26 +0000 (19:13 -0700)
Correct spelling in comments, as flagged by codespell.

Signed-off-by: Simon Horman <horms@kernel.org>
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20240424-lan743x-confirm-v2-2-f0480542e39f@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan966x/lan966x_ifh.h
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
drivers/net/ethernet/microchip/lan966x/lan966x_main.h
drivers/net/ethernet/microchip/lan966x/lan966x_port.c
drivers/net/ethernet/microchip/lan966x/lan966x_vlan.c

index f3b1e0d318261c5289e01907e92ab402640c778d..e706163ce9cc03e811557e663cc12242cace6f08 100644 (file)
@@ -78,7 +78,7 @@
 /* Classified internal priority for queuing */
 #define IFH_POS_QOS_CLASS            100
 
-/* Bit mask with eight cpu copy classses */
+/* Bit mask with eight cpu copy classes */
 #define IFH_POS_CPUQ                 92
 
 /* Relearn + learn flags (*) */
index 2635ef8958c8045df82b56cb6e532ce401450b9c..b7e75da658340403b6645d465b31f562ca44d75f 100644 (file)
@@ -276,7 +276,7 @@ static int lan966x_port_ifh_xmit(struct sk_buff *skb,
                ++i;
        }
 
-       /* Inidcate EOF and valid bytes in the last word */
+       /* Indicate EOF and valid bytes in the last word */
        lan_wr(QS_INJ_CTRL_GAP_SIZE_SET(1) |
               QS_INJ_CTRL_VLD_BYTES_SET(skb->len < LAN966X_BUFFER_MIN_SZ ?
                                     0 : last) |
@@ -520,7 +520,7 @@ bool lan966x_hw_offload(struct lan966x *lan966x, u32 port, struct sk_buff *skb)
        u32 val;
 
        /* The IGMP and MLD frames are not forward by the HW if
-        * multicast snooping is enabled, therefor don't mark as
+        * multicast snooping is enabled, therefore don't mark as
         * offload to allow the SW to forward the frames accordingly.
         */
        val = lan_rd(lan966x, ANA_CPU_FWD_CFG(port));
index caa9e0533c96b3c31d956ee3f01eb7e59bab591c..f8bebbcf77b2df5dc0ad61328ee7fa6fd734e99f 100644 (file)
@@ -326,7 +326,7 @@ struct lan966x {
 
        u8 base_mac[ETH_ALEN];
 
-       spinlock_t tx_lock; /* lock for frame transmition */
+       spinlock_t tx_lock; /* lock for frame transmission */
 
        struct net_device *bridge;
        u16 bridge_mask;
index 2e83bbb9477e0693f236e83be30277d3e92df235..fdfa4040d9ee2fb99b9e2c151b80936326f5f8f6 100644 (file)
@@ -88,7 +88,7 @@ static void lan966x_port_link_down(struct lan966x_port *port)
                SYS_FRONT_PORT_MODE_HDX_MODE,
                lan966x, SYS_FRONT_PORT_MODE(port->chip_port));
 
-       /* 8: Flush the queues accociated with the port */
+       /* 8: Flush the queues associated with the port */
        lan_rmw(QSYS_SW_PORT_MODE_AGING_MODE_SET(3),
                QSYS_SW_PORT_MODE_AGING_MODE,
                lan966x, QSYS_SW_PORT_MODE(port->chip_port));
index 3c44660128daedada078e565419542dce2f5bd8e..fa34a739c748e12545c19dbe3e3f9a1d52e8e9bf 100644 (file)
@@ -157,7 +157,7 @@ void lan966x_vlan_port_apply(struct lan966x_port *port)
 
        pvid = lan966x_vlan_port_get_pvid(port);
 
-       /* Ingress clasification (ANA_PORT_VLAN_CFG) */
+       /* Ingress classification (ANA_PORT_VLAN_CFG) */
        /* Default vlan to classify for untagged frames (may be zero) */
        val = ANA_VLAN_CFG_VLAN_VID_SET(pvid);
        if (port->vlan_aware)