]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'phy-supported-interfaces-bitmap'
authorDavid S. Miller <davem@davemloft.net>
Tue, 26 Oct 2021 14:10:37 +0000 (15:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Oct 2021 14:10:37 +0000 (15:10 +0100)
commitb7e5821a534937d4c582298332470e4238da82c8
tree65da141e422565b05e2ee8710cf602bfb42cf1a8
parent0f3618e7632dd59add3717aff5c1fa4c0a45fc6f
parente721a5b5021dcd9e348af4e2da5893424ce792d5
Merge branch 'phy-supported-interfaces-bitmap'

Russell King says:

====================
Introduce supported interfaces bitmap

This series introduces a new bitmap to allow us to indicate which
phy_interface_t modes are supported.

Currently, phylink will call ->validate with PHY_INTERFACE_MODE_NA to
request all link mode capabilities from the MAC driver before choosing
an interface to use. This leads in some cases to some rather hairly
code. This can be simplified if phylink is aware of the interface modes
that  the MAC supports, and it can instead walk those modes, calling
->validate for each one, and combining the results.

This series merely introduces the support; there is no change of
behaviour until MAC drivers populate their supported_interfaces bitmap.
====================

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