summaryrefslogtreecommitdiff
path: root/LICENSES
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2022-01-12 11:12:17 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-06-06 12:24:45 +0100
commit43f682154da604414562167a9bb48bac0d218358 (patch)
tree473944783880540f2069580d8ca5bb6bbf994543 /LICENSES
parent8134b2e16fe208d28f7d81a74744463fa188e279 (diff)
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 <kabel@kernel.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions