Merge branch 'mvneta-phylink'
authorDavid S. Miller <davem@davemloft.net>
Wed, 27 Oct 2021 13:50:11 +0000 (14:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Oct 2021 13:50:11 +0000 (14:50 +0100)
commite334df1d33b6d68f4441494e2d0e2640dd1bfdde
tree1bb382b575f77c727ebe9d28cb03682ff8f0aa6c
parentc230dc8627de832fe13bee64613a52a46c5b54ab
parent099cbfa286ab937d8213c2dc5c0b401969b78042
Merge branch 'mvneta-phylink'

Russell King says:

====================
Convert mvneta to phylink supported_interfaces

This patch series converts mvneta 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

(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>