Commit 8d45e42b authored by LABBE Corentin's avatar LABBE Corentin Committed by David S. Miller

net: stmmac: fix some typos in comments

This patch fix some typos in comments.
Signed-off-by: default avatarCorentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a2cac54
...@@ -102,7 +102,7 @@ static void show_tx_process_state(unsigned int status) ...@@ -102,7 +102,7 @@ static void show_tx_process_state(unsigned int status)
pr_debug("- TX (Stopped): Reset or Stop command\n"); pr_debug("- TX (Stopped): Reset or Stop command\n");
break; break;
case 1: case 1:
pr_debug("- TX (Running):Fetching the Tx desc\n"); pr_debug("- TX (Running): Fetching the Tx desc\n");
break; break;
case 2: case 2:
pr_debug("- TX (Running): Waiting for end of tx\n"); pr_debug("- TX (Running): Waiting for end of tx\n");
...@@ -136,7 +136,7 @@ static void show_rx_process_state(unsigned int status) ...@@ -136,7 +136,7 @@ static void show_rx_process_state(unsigned int status)
pr_debug("- RX (Running): Fetching the Rx desc\n"); pr_debug("- RX (Running): Fetching the Rx desc\n");
break; break;
case 2: case 2:
pr_debug("- RX (Running):Checking for end of pkt\n"); pr_debug("- RX (Running): Checking for end of pkt\n");
break; break;
case 3: case 3:
pr_debug("- RX (Running): Waiting for Rx pkt\n"); pr_debug("- RX (Running): Waiting for Rx pkt\n");
...@@ -246,7 +246,7 @@ void stmmac_set_mac_addr(void __iomem *ioaddr, u8 addr[6], ...@@ -246,7 +246,7 @@ void stmmac_set_mac_addr(void __iomem *ioaddr, u8 addr[6],
unsigned long data; unsigned long data;
data = (addr[5] << 8) | addr[4]; data = (addr[5] << 8) | addr[4];
/* For MAC Addr registers se have to set the Address Enable (AE) /* For MAC Addr registers we have to set the Address Enable (AE)
* bit that has no effect on the High Reg 0 where the bit 31 (MO) * bit that has no effect on the High Reg 0 where the bit 31 (MO)
* is RO. * is RO.
*/ */
......
...@@ -216,7 +216,7 @@ static inline u32 stmmac_rx_dirty(struct stmmac_priv *priv) ...@@ -216,7 +216,7 @@ static inline u32 stmmac_rx_dirty(struct stmmac_priv *priv)
/** /**
* stmmac_hw_fix_mac_speed - callback for speed selection * stmmac_hw_fix_mac_speed - callback for speed selection
* @priv: driver private structure * @priv: driver private structure
* Description: on some platforms (e.g. ST), some HW system configuraton * Description: on some platforms (e.g. ST), some HW system configuration
* registers have to be set according to the link speed negotiated. * registers have to be set according to the link speed negotiated.
*/ */
static inline void stmmac_hw_fix_mac_speed(struct stmmac_priv *priv) static inline void stmmac_hw_fix_mac_speed(struct stmmac_priv *priv)
...@@ -416,7 +416,7 @@ static void stmmac_get_rx_hwtstamp(struct stmmac_priv *priv, struct dma_desc *p, ...@@ -416,7 +416,7 @@ static void stmmac_get_rx_hwtstamp(struct stmmac_priv *priv, struct dma_desc *p,
/** /**
* stmmac_hwtstamp_ioctl - control hardware timestamping. * stmmac_hwtstamp_ioctl - control hardware timestamping.
* @dev: device pointer. * @dev: device pointer.
* @ifr: An IOCTL specefic structure, that can contain a pointer to * @ifr: An IOCTL specific structure, that can contain a pointer to
* a proprietary structure used to pass information to the driver. * a proprietary structure used to pass information to the driver.
* Description: * Description:
* This function configures the MAC to enable/disable both outgoing(TX) * This function configures the MAC to enable/disable both outgoing(TX)
...@@ -1003,7 +1003,7 @@ static void stmmac_free_rx_buffers(struct stmmac_priv *priv, int i) ...@@ -1003,7 +1003,7 @@ static void stmmac_free_rx_buffers(struct stmmac_priv *priv, int i)
* @dev: net device structure * @dev: net device structure
* @flags: gfp flag. * @flags: gfp flag.
* Description: this function initializes the DMA RX/TX descriptors * Description: this function initializes the DMA RX/TX descriptors
* and allocates the socket buffers. It suppors the chained and ring * and allocates the socket buffers. It supports the chained and ring
* modes. * modes.
*/ */
static int init_dma_desc_rings(struct net_device *dev, gfp_t flags) static int init_dma_desc_rings(struct net_device *dev, gfp_t flags)
...@@ -2532,7 +2532,7 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit) ...@@ -2532,7 +2532,7 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit)
if (unlikely(status == discard_frame)) { if (unlikely(status == discard_frame)) {
priv->dev->stats.rx_errors++; priv->dev->stats.rx_errors++;
if (priv->hwts_rx_en && !priv->extend_desc) { if (priv->hwts_rx_en && !priv->extend_desc) {
/* DESC2 & DESC3 will be overwitten by device /* DESC2 & DESC3 will be overwritten by device
* with timestamp value, hence reinitialize * with timestamp value, hence reinitialize
* them in stmmac_rx_refill() function so that * them in stmmac_rx_refill() function so that
* device can reuse it. * device can reuse it.
...@@ -2555,7 +2555,7 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit) ...@@ -2555,7 +2555,7 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit)
frame_len = priv->hw->desc->get_rx_frame_len(p, coe); frame_len = priv->hw->desc->get_rx_frame_len(p, coe);
/* If frame length is greather than skb buffer size /* If frame length is greater than skb buffer size
* (preallocated during init) then the packet is * (preallocated during init) then the packet is
* ignored * ignored
*/ */
...@@ -2761,7 +2761,7 @@ static netdev_features_t stmmac_fix_features(struct net_device *dev, ...@@ -2761,7 +2761,7 @@ static netdev_features_t stmmac_fix_features(struct net_device *dev,
/* Some GMAC devices have a bugged Jumbo frame support that /* Some GMAC devices have a bugged Jumbo frame support that
* needs to have the Tx COE disabled for oversized frames * needs to have the Tx COE disabled for oversized frames
* (due to limited buffer sizes). In this case we disable * (due to limited buffer sizes). In this case we disable
* the TX csum insertionin the TDES and not use SF. * the TX csum insertion in the TDES and not use SF.
*/ */
if (priv->plat->bugged_jumbo && (dev->mtu > ETH_DATA_LEN)) if (priv->plat->bugged_jumbo && (dev->mtu > ETH_DATA_LEN))
features &= ~NETIF_F_CSUM_MASK; features &= ~NETIF_F_CSUM_MASK;
...@@ -2988,7 +2988,7 @@ static int stmmac_sysfs_dma_cap_read(struct seq_file *seq, void *v) ...@@ -2988,7 +2988,7 @@ static int stmmac_sysfs_dma_cap_read(struct seq_file *seq, void *v)
(priv->dma_cap.hash_filter) ? "Y" : "N"); (priv->dma_cap.hash_filter) ? "Y" : "N");
seq_printf(seq, "\tMultiple MAC address registers: %s\n", seq_printf(seq, "\tMultiple MAC address registers: %s\n",
(priv->dma_cap.multi_addr) ? "Y" : "N"); (priv->dma_cap.multi_addr) ? "Y" : "N");
seq_printf(seq, "\tPCS (TBI/SGMII/RTBI PHY interfatces): %s\n", seq_printf(seq, "\tPCS (TBI/SGMII/RTBI PHY interfaces): %s\n",
(priv->dma_cap.pcs) ? "Y" : "N"); (priv->dma_cap.pcs) ? "Y" : "N");
seq_printf(seq, "\tSMA (MDIO) Interface: %s\n", seq_printf(seq, "\tSMA (MDIO) Interface: %s\n",
(priv->dma_cap.sma_mdio) ? "Y" : "N"); (priv->dma_cap.sma_mdio) ? "Y" : "N");
...@@ -3485,7 +3485,7 @@ int stmmac_resume(struct device *dev) ...@@ -3485,7 +3485,7 @@ int stmmac_resume(struct device *dev)
priv->irq_wake = 0; priv->irq_wake = 0;
} else { } else {
pinctrl_pm_select_default_state(priv->device); pinctrl_pm_select_default_state(priv->device);
/* enable the clk prevously disabled */ /* enable the clk previously disabled */
clk_enable(priv->plat->stmmac_clk); clk_enable(priv->plat->stmmac_clk);
clk_enable(priv->plat->pclk); clk_enable(priv->plat->pclk);
/* reset the phy so that it's ready */ /* reset the phy so that it's ready */
......
...@@ -198,7 +198,7 @@ int stmmac_mdio_reset(struct mii_bus *bus) ...@@ -198,7 +198,7 @@ int stmmac_mdio_reset(struct mii_bus *bus)
/* This is a workaround for problems with the STE101P PHY. /* This is a workaround for problems with the STE101P PHY.
* It doesn't complete its reset until at least one clock cycle * It doesn't complete its reset until at least one clock cycle
* on MDC, so perform a dummy mdio read. To be upadted for GMAC4 * on MDC, so perform a dummy mdio read. To be updated for GMAC4
* if needed. * if needed.
*/ */
if (!priv->plat->has_gmac4) if (!priv->plat->has_gmac4)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment