mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-22 05:44:31 +08:00
net: phy: xpcs: Restart AutoNeg if outcome was invalid
Restart AutoNeg if we didn't get a valid result from previous run. Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e1eab7dfa6
commit
1874b83a39
@ -433,8 +433,10 @@ static int xpcs_aneg_done(struct mdio_xpcs_args *xpcs,
|
||||
return ret;
|
||||
|
||||
/* Check if Aneg outcome is valid */
|
||||
if (!(ret & DW_C73_AN_ADV_SF))
|
||||
if (!(ret & DW_C73_AN_ADV_SF)) {
|
||||
xpcs_config_aneg(xpcs);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user