Skip to content

Commit

Permalink
net: bcmgenet: correct spelling
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Brian Norris authored and David S. Miller committed Jul 31, 2014
1 parent 989e9ad commit 7fc527f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions drivers/net/ethernet/broadcom/genet/bcmgenet.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static inline void dmadesc_set_addr(struct bcmgenet_priv *priv,

/* Register writes to GISB bus can take couple hundred nanoseconds
* and are done for each packet, save these expensive writes unless
* the platform is explicitely configured for 64-bits/LPAE.
* the platform is explicitly configured for 64-bits/LPAE.
*/
#ifdef CONFIG_PHYS_ADDR_T_64BIT
if (priv->hw_params->flags & GENET_HAS_40BITS)
Expand All @@ -114,7 +114,7 @@ static inline dma_addr_t dmadesc_get_addr(struct bcmgenet_priv *priv,

/* Register writes to GISB bus can take couple hundred nanoseconds
* and are done for each packet, save these expensive writes unless
* the platform is explicitely configured for 64-bits/LPAE.
* the platform is explicitly configured for 64-bits/LPAE.
*/
#ifdef CONFIG_PHYS_ADDR_T_64BIT
if (priv->hw_params->flags & GENET_HAS_40BITS)
Expand Down Expand Up @@ -876,7 +876,7 @@ static void __bcmgenet_tx_reclaim(struct net_device *dev,
struct netdev_queue *txq;
unsigned int c_index;

/* Compute how many buffers are transmited since last xmit call */
/* Compute how many buffers are transmitted since last xmit call */
c_index = bcmgenet_tdma_ring_readl(priv, ring->index, TDMA_CONS_INDEX);
txq = netdev_get_tx_queue(dev, ring->queue);

Expand Down Expand Up @@ -1005,7 +1005,7 @@ static int bcmgenet_xmit_single(struct net_device *dev,
return 0;
}

/* Transmit a SKB fragement */
/* Transmit a SKB fragment */
static int bcmgenet_xmit_frag(struct net_device *dev,
skb_frag_t *frag,
u16 dma_desc_flags,
Expand Down Expand Up @@ -1481,7 +1481,7 @@ static int reset_umac(struct bcmgenet_priv *priv)

if (timeout == 1000) {
dev_err(kdev,
"timeout waiting for MAC to come out of resetn\n");
"timeout waiting for MAC to come out of reset\n");
return -ETIMEDOUT;
}

Expand Down Expand Up @@ -1534,7 +1534,7 @@ static int init_umac(struct bcmgenet_priv *priv)

dev_dbg(kdev, "%s:Enabling RXDMA_BDONE interrupt\n", __func__);

/* Monitor cable plug/unpluged event for internal PHY */
/* Monitor cable plug/unplugged event for internal PHY */
if (phy_is_internal(priv->phydev)) {
cpu_mask_clear |= (UMAC_IRQ_LINK_DOWN | UMAC_IRQ_LINK_UP);
} else if (priv->ext_phy) {
Expand Down Expand Up @@ -1709,7 +1709,7 @@ static void bcmgenet_init_multiq(struct net_device *dev)
i * priv->hw_params->bds_cnt,
(i + 1) * priv->hw_params->bds_cnt);

/* Configure ring as decriptor ring and setup priority */
/* Configure ring as descriptor ring and setup priority */
ring_cfg |= 1 << i;
dma_priority |= ((GENET_Q0_PRIORITY + i) <<
(GENET_MAX_MQ_CNT + 1) * i);
Expand Down Expand Up @@ -1775,7 +1775,7 @@ static int bcmgenet_init_dma(struct bcmgenet_priv *priv)
/* Init tDma */
bcmgenet_tdma_writel(priv, DMA_MAX_BURST_LENGTH, DMA_SCB_BURST_SIZE);

/* Initialize commont TX ring structures */
/* Initialize common TX ring structures */
priv->tx_bds = priv->base + priv->hw_params->tdma_offset;
priv->num_tx_bds = TOTAL_DESC;
priv->tx_cbs = kcalloc(priv->num_tx_bds, sizeof(struct enet_cb),
Expand Down Expand Up @@ -1857,7 +1857,7 @@ static irqreturn_t bcmgenet_isr1(int irq, void *dev_id)
priv->irq1_stat =
bcmgenet_intrl2_1_readl(priv, INTRL2_CPU_STAT) &
~priv->int1_mask;
/* clear inerrupts*/
/* clear interrupts */
bcmgenet_intrl2_1_writel(priv, priv->irq1_stat, INTRL2_CPU_CLEAR);

netif_dbg(priv, intr, priv->dev,
Expand Down Expand Up @@ -1885,7 +1885,7 @@ static irqreturn_t bcmgenet_isr0(int irq, void *dev_id)
priv->irq0_stat =
bcmgenet_intrl2_0_readl(priv, INTRL2_CPU_STAT) &
~bcmgenet_intrl2_0_readl(priv, INTRL2_CPU_MASK_STATUS);
/* clear inerrupts*/
/* clear interrupts */
bcmgenet_intrl2_0_writel(priv, priv->irq0_stat, INTRL2_CPU_CLEAR);

netif_dbg(priv, intr, priv->dev,
Expand Down Expand Up @@ -2244,7 +2244,7 @@ static void bcmgenet_set_rx_mode(struct net_device *dev)

netif_dbg(priv, hw, dev, "%s: %08X\n", __func__, dev->flags);

/* Promiscous mode */
/* Promiscuous mode */
reg = bcmgenet_umac_readl(priv, UMAC_CMD);
if (dev->flags & IFF_PROMISC) {
reg |= CMD_PROMISC;
Expand Down

0 comments on commit 7fc527f

Please sign in to comment.