Merge branch 'generic-phylink-validation'
authorDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2021 14:31:00 +0000 (14:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2021 14:31:00 +0000 (14:31 +0000)
commit6d3b1b069946e8a9dbb5e6ea45c3aeee1d56ea44
treed1417fdbaf17d158a871e2c1455b69e4f26c81b0
parent5cf46d8e741f3876222f11b0a0bcbdcddfd8754e
parent5038ffea0c6c9476f1a8288b112609ac5a49f51b
Merge branch 'generic-phylink-validation'

Russell King says:

====================
introduce generic phylink validation

The various validate method implementations we have in phylink users
have been quite repetitive but also prone to bugs. These patches
introduce a generic implementation which relies solely on the
supported_interfaces bitmap introduced during last cycle, and in the
first patch, a bit array of MAC capabilities.

MAC drivers are free to continue to do their own thing if they have
special requirements - such as mvneta and mvpp2 which do not support
1000base-X without AN enabled. Most implementations currently in the
kernel can be converted to call phylink_generic_validate() directly
from the phylink MAC operations structure once they fill in the
supported_interfaces and mac_capabilities members of phylink_config.

This series introduces the generic implementation, and converts mvneta
and mvpp2 to use it.
====================

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