net: stmmac: fix the typo on MAC_RNABLE_RX
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 8 Feb 2017 08:31:06 +0000 (09:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2017 20:11:22 +0000 (15:11 -0500)
the define MAC_RNABLE_RX have a typo, rename it to MAC_ENABLE_RX

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c

index 75e2666df940fc16d06eebe2efbe81ea0a89edd2..262a1c477a93b11870d246709b0005977ac3e2f9 100644 (file)
@@ -343,7 +343,7 @@ struct dma_features {
 /* Common MAC defines */
 #define MAC_CTRL_REG           0x00000000      /* MAC Control */
 #define MAC_ENABLE_TX          0x00000008      /* Transmitter Enable */
-#define MAC_RNABLE_RX          0x00000004      /* Receiver Enable */
+#define MAC_ENABLE_RX          0x00000004      /* Receiver Enable */
 
 /* Default LPI timers */
 #define STMMAC_DEFAULT_LIT_LS  0x3E8
index 84e3e84cec7d33dddf13e0fc83e235d1e181cbda..a414bde56dd78fa54d4c16e784cfd2791a4fba46 100644 (file)
@@ -261,9 +261,9 @@ void stmmac_set_mac(void __iomem *ioaddr, bool enable)
        u32 value = readl(ioaddr + MAC_CTRL_REG);
 
        if (enable)
-               value |= MAC_RNABLE_RX | MAC_ENABLE_TX;
+               value |= MAC_ENABLE_RX | MAC_ENABLE_TX;
        else
-               value &= ~(MAC_ENABLE_TX | MAC_RNABLE_RX);
+               value &= ~(MAC_ENABLE_TX | MAC_ENABLE_RX);
 
        writel(value, ioaddr + MAC_CTRL_REG);
 }