diff options
| author | Heiner Kallweit <[email protected]> | 2019-03-31 17:54:07 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-04-02 20:16:17 +0000 |
| commit | 372fcc1b8b66148367af8374d09d48b6a0385faf (patch) | |
| tree | b5bf6c846595526713022e0ee9f82bc05907f9e9 /net/sched/cls_api.c | |
| parent | net: phy: use c45 standard to detect link partner autoneg capability (diff) | |
| download | kernel-372fcc1b8b66148367af8374d09d48b6a0385faf.tar.gz kernel-372fcc1b8b66148367af8374d09d48b6a0385faf.zip | |
net: phy: deal properly with autoneg incomplete in genphy_c45_read_lpa
The link partner advertisement registers are not guaranteed to contain
valid values if autoneg is incomplete. Therefore, if
MDIO_AN_STAT1_COMPLETE isn't set, let's clear all link partner
capability bits. This also avoids unnecessary register reads if link
is down and phylib is in polling mode.
Signed-off-by: Heiner Kallweit <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sched/cls_api.c')
0 files changed, 0 insertions, 0 deletions
