Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e2ed132 authored by Niklas Söderlund's avatar Niklas Söderlund Committed by David S. Miller
Browse files

sh_eth: align usage of sh_eth_modify() with rest of driver



To be consistent with the rest of the driver when setting bits using
sh_eth_modify() the same bit should also be cleared. This have no
functional change and should have been done from the start.

Signed-off-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Suggested-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 889711a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3271,7 +3271,7 @@ static int sh_eth_wol_setup(struct net_device *ndev)
	sh_eth_write(ndev, EESIPR_ECIIP, EESIPR);

	/* Enable MagicPacket */
	sh_eth_modify(ndev, ECMR, 0, ECMR_MPDE);
	sh_eth_modify(ndev, ECMR, ECMR_MPDE, ECMR_MPDE);

	/* Increased clock usage so device won't be suspended */
	clk_enable(mdp->clk);