diff options
| author | Marek BehĂșn <[email protected]> | 2022-06-07 11:28:42 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-06-09 03:58:30 +0000 |
| commit | 47e96930d6e6106d5252e85b868d3c7e29296de0 (patch) | |
| tree | 7ca12cffa0e45ed44c0e68de3abe4d67b1283b14 /net/switchdev/switchdev.c | |
| parent | net: altera: Fix refcount leak in altera_tse_mdio_create (diff) | |
| download | kernel-47e96930d6e6106d5252e85b868d3c7e29296de0.tar.gz kernel-47e96930d6e6106d5252e85b868d3c7e29296de0.zip | |
net: dsa: mv88e6xxx: use BMSR_ANEGCOMPLETE bit for filling an_complete
Commit ede359d8843a ("net: dsa: mv88e6xxx: Link in pcs_get_state() if AN
is bypassed") added the ability to link if AN was bypassed, and added
filling of state->an_complete field, but set it to true if AN was
enabled in BMCR, not when AN was reported complete in BMSR.
This was done because for some reason, when I wanted to use BMSR value
to infer an_complete, I was looking at BMSR_ANEGCAPABLE bit (which was
always 1), instead of BMSR_ANEGCOMPLETE bit.
Use BMSR_ANEGCOMPLETE for filling state->an_complete.
Fixes: ede359d8843a ("net: dsa: mv88e6xxx: Link in pcs_get_state() if AN is bypassed")
Signed-off-by: Marek BehĂșn <[email protected]>
Signed-off-by: Russell King (Oracle) <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
