mirror of https://gitee.com/openkylin/linux.git
net: phy: xpcs: Return error when 10GKR link errors are found
For 10GKR rate, when link errors are found we need to return fault status so that XPCS is correctly resumed. Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c31f0ea737
commit
f84752d080
|
@ -255,8 +255,10 @@ static int xpcs_read_fault(struct mdio_xpcs_args *xpcs,
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (ret & MDIO_PCS_10GBRT_STAT2_ERR)
|
||||
if (ret & MDIO_PCS_10GBRT_STAT2_ERR) {
|
||||
xpcs_warn(xpcs, state, "Link has errors!\n");
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue