ar8216: replace ar8xxx_rmw with ar8xxx_reg_set where appropriate
authorJohn Crispin <john@openwrt.org>
Sat, 17 Jan 2015 14:24:47 +0000 (14:24 +0000)
committerJohn Crispin <john@openwrt.org>
Sat, 17 Jan 2015 14:24:47 +0000 (14:24 +0000)
Replace ar8xxx_rmw with ar8xxx_reg_set where appropriate.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 44003

target/linux/generic/files/drivers/net/phy/ar8216.c
target/linux/generic/files/drivers/net/phy/ar8327.c

index 906dc7ac15be11bd159931660e5488cef3f6f8c7..76dfcf4c015e7bf34c73b1ebf38f4b6edd143dbe 100644 (file)
@@ -742,12 +742,11 @@ ar8236_init_globals(struct ar8xxx_priv *priv)
                   AR8316_GCTRL_MTU, 9018 + 8 + 2);
 
        /* enable cpu port to receive arp frames */
-       ar8xxx_rmw(priv, AR8216_REG_ATU_CTRL,
-                  AR8236_ATU_CTRL_RES, AR8236_ATU_CTRL_RES);
+       ar8xxx_reg_set(priv, AR8216_REG_ATU_CTRL,
+                  AR8236_ATU_CTRL_RES);
 
        /* enable cpu port to receive multicast and broadcast frames */
-       ar8xxx_rmw(priv, AR8216_REG_FLOOD_MASK,
-                  AR8236_FM_CPU_BROADCAST_EN | AR8236_FM_CPU_BCAST_FWD_EN,
+       ar8xxx_reg_set(priv, AR8216_REG_FLOOD_MASK,
                   AR8236_FM_CPU_BROADCAST_EN | AR8236_FM_CPU_BCAST_FWD_EN);
 
        /* Enable MIB counters */
@@ -979,13 +978,11 @@ ar8216_set_mirror_regs(struct ar8xxx_priv *priv)
                   (priv->monitor_port << AR8216_GLOBAL_CPUPORT_MIRROR_PORT_S));
 
        if (priv->mirror_rx)
-               ar8xxx_rmw(priv, AR8216_REG_PORT_CTRL(priv->source_port),
-                          AR8216_PORT_CTRL_MIRROR_RX,
+               ar8xxx_reg_set(priv, AR8216_REG_PORT_CTRL(priv->source_port),
                           AR8216_PORT_CTRL_MIRROR_RX);
 
        if (priv->mirror_tx)
-               ar8xxx_rmw(priv, AR8216_REG_PORT_CTRL(priv->source_port),
-                          AR8216_PORT_CTRL_MIRROR_TX,
+               ar8xxx_reg_set(priv, AR8216_REG_PORT_CTRL(priv->source_port),
                           AR8216_PORT_CTRL_MIRROR_TX);
 }
 
index 38c11cb59ad9a071d3f55ffdd7dec12de59c9d4d..b69c33b1233787da294aed817bc1b6a22a79faa7 100644 (file)
@@ -886,13 +886,11 @@ ar8327_set_mirror_regs(struct ar8xxx_priv *priv)
                   (priv->monitor_port << AR8327_FWD_CTRL0_MIRROR_PORT_S));
 
        if (priv->mirror_rx)
-               ar8xxx_rmw(priv, AR8327_REG_PORT_LOOKUP(priv->source_port),
-                          AR8327_PORT_LOOKUP_ING_MIRROR_EN,
+               ar8xxx_reg_set(priv, AR8327_REG_PORT_LOOKUP(priv->source_port),
                           AR8327_PORT_LOOKUP_ING_MIRROR_EN);
 
        if (priv->mirror_tx)
-               ar8xxx_rmw(priv, AR8327_REG_PORT_HOL_CTRL1(priv->source_port),
-                          AR8327_PORT_HOL_CTRL1_EG_MIRROR_EN,
+               ar8xxx_reg_set(priv, AR8327_REG_PORT_HOL_CTRL1(priv->source_port),
                           AR8327_PORT_HOL_CTRL1_EG_MIRROR_EN);
 }