]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/net/ethernet/renesas/sh_eth.c
sh_eth: stop reading ECMR in sh_eth_dev_init()
[linux-beck.git] / drivers / net / ethernet / renesas / sh_eth.c
index 6a8fc0f341ff2528fdda1cb97f8e2934d99c5f14..9c1e290ca4eee3c77ec8223200c234adfbeb40f9 100644 (file)
@@ -1289,7 +1289,6 @@ static int sh_eth_dev_init(struct net_device *ndev, bool start)
 {
        int ret = 0;
        struct sh_eth_private *mdp = netdev_priv(ndev);
-       u32 val;
 
        /* Soft Reset */
        ret = sh_eth_reset(ndev);
@@ -1342,10 +1341,8 @@ static int sh_eth_dev_init(struct net_device *ndev, bool start)
        }
 
        /* PAUSE Prohibition */
-       val = (sh_eth_read(ndev, ECMR) & ECMR_DM) |
-               ECMR_ZPF | (mdp->duplex ? ECMR_DM : 0) | ECMR_TE | ECMR_RE;
-
-       sh_eth_write(ndev, val, ECMR);
+       sh_eth_write(ndev, ECMR_ZPF | (mdp->duplex ? ECMR_DM : 0) |
+                    ECMR_TE | ECMR_RE, ECMR);
 
        if (mdp->cd->set_rate)
                mdp->cd->set_rate(ndev);