mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 01:50:53 +07:00
net: sh_eth: fix cannot work half-duplex mode
When link was down, the bit of DM in ECMR was always set. So, we could not use half-duplex mode on the controller. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
712ae51afd
commit
91a5615203
@ -1184,8 +1184,8 @@ static void sh_eth_adjust_link(struct net_device *ndev)
|
||||
mdp->cd->set_rate(ndev);
|
||||
}
|
||||
if (mdp->link == PHY_DOWN) {
|
||||
sh_eth_write(ndev, (sh_eth_read(ndev, ECMR) & ~ECMR_TXF)
|
||||
| ECMR_DM, ECMR);
|
||||
sh_eth_write(ndev,
|
||||
(sh_eth_read(ndev, ECMR) & ~ECMR_TXF), ECMR);
|
||||
new_state = 1;
|
||||
mdp->link = phydev->link;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user