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)
commit1feef2dece56de5825513e55b92a1826358a55b0
tree62fe351114eb285953b39985fc87cd99618f0b24
parent06e6c88fba2413a8408f321b0b3a5b0954e76436
parentb63f1117aefc67516fe26bd104bc3a8ffa617a05
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>