]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mvpp2-phylink'
authorDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 11:55:44 +0000 (12:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 11:55:44 +0000 (12:55 +0100)
commit4c87030a4fc0705adbaffab943d25c3eb6d68e06
tree62fe351114eb285953b39985fc87cd99618f0b24
parentf08290c492a5b0bfed1df043888d6a46af583622
parentbf3c97448b4f7109f5f046a2dddf335e08a3a675
Merge branch 'mvpp2-phylink'

Russell King says:

====================
Convert mvpp2 to phylink supported_interfaces

This patch series converts mvpp2 to use phylinks supported_interfaces
bitmap to simplify the validate() implementation. The patches:

1) Add the supported interface modes the supported_interfaces bitmap.
2) Removes the checks for the interface type being supported from
   the validate callback
3) Removes the now unnecessary checks and call to
   phylink_helper_basex_speed() to support switching between
   1000base-X and 2500base-X for SFPs
4) Cleans up the resulting validate() code.

(3) becomes possible because when asking the MAC for its complete
support, we walk all supported interfaces which will include 1000base-X
and 2500base-X only if the comphy is present.
====================

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