]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-phy-improve-and-simplify-phylib-state-machine'
authorDavid S. Miller <davem@davemloft.net>
Thu, 8 Nov 2018 23:02:06 +0000 (15:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Nov 2018 23:02:06 +0000 (15:02 -0800)
commit83a872d951e25e1aa7f050f98bde322a0d750f22
tree4ff3c142089c9966cb1bc30545c0808fed105f41
parentc398acc36690d7af648f00c51fe894722de53e9e
parent757d742b95c5e0a7abf7f02f29412ebcacb01c9e
Merge branch 'net-phy-improve-and-simplify-phylib-state-machine'

Heiner Kallweit says:

====================
net: phy: improve and simplify phylib state machine

This patch series is based on two axioms:

- During autoneg a PHY always reports the link being down

- Info in clause 22/45 registers doesn't allow to differentiate between
  these two states:
  1. Link is physically down
  2. A link partner is connected and PHY is autonegotiating
  In both cases "link up" and "aneg finished" bits aren't set.
  One consequence is that having separate states PHY_NOLINK and PHY_AN
  isn't needed.

By using these two axioms the state machine can be significantly
simplified.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>