summaryrefslogtreecommitdiffstats
path: root/.cocciconfig
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2022-06-07 12:28:42 +0100
committerJakub Kicinski <kuba@kernel.org>2022-06-08 20:58:30 -0700
commit47e96930d6e6106d5252e85b868d3c7e29296de0 (patch)
tree7ca12cffa0e45ed44c0e68de3abe4d67b1283b14 /.cocciconfig
parent11ec18b1d8d92b9df307d31950dcba0b3dd7283c (diff)
downloadlinux-47e96930d6e6106d5252e85b868d3c7e29296de0.tar.bz2
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> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions