forked from Minki/linux
sh_eth: use EDSR_ENALL to set EDSR
Use now always available EDSR_ENALL instead of the bare number to set EDSR. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> [Sergei: added the changelog, reworded the subject, changing the prefix.] Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
41d5ffeb9d
commit
ddcd91c6b8
@ -523,7 +523,7 @@ static int sh_eth_reset(struct net_device *ndev)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (sh_eth_is_gether(mdp)) {
|
if (sh_eth_is_gether(mdp)) {
|
||||||
sh_eth_write(ndev, 0x03, EDSR);
|
sh_eth_write(ndev, EDSR_ENALL, EDSR);
|
||||||
sh_eth_write(ndev, sh_eth_read(ndev, EDMR) | EDMR_SRST_GETHER,
|
sh_eth_write(ndev, sh_eth_read(ndev, EDMR) | EDMR_SRST_GETHER,
|
||||||
EDMR);
|
EDMR);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user