All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] Introduce supported interfaces bitmap
@ 2021-10-26 10:05 Russell King (Oracle)
  2021-10-26 10:06 ` [PATCH net-next 1/3] net: phy: add phy_interface_t bitmap support Russell King (Oracle)
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Russell King (Oracle) @ 2021-10-26 10:05 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, Sean Anderson
  Cc: David S. Miller, Jakub Kicinski, netdev

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.

 drivers/net/phy/phylink.c | 36 ++++++++++++++++++++++++++++++++++++
 include/linux/phy.h       | 34 ++++++++++++++++++++++++++++++++++
 include/linux/phylink.h   | 13 +++++++++++--
 3 files changed, 81 insertions(+), 2 deletions(-)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-26 14:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-26 10:05 [PATCH net-next 0/3] Introduce supported interfaces bitmap Russell King (Oracle)
2021-10-26 10:06 ` [PATCH net-next 1/3] net: phy: add phy_interface_t bitmap support Russell King (Oracle)
2021-10-26 10:06 ` [PATCH net-next 2/3] net: phylink: add MAC phy_interface_t bitmap Russell King
2021-10-26 10:06 ` [PATCH net-next 3/3] net: phylink: use supported_interfaces for phylink validation Russell King (Oracle)
2021-10-26 14:20 ` [PATCH net-next 0/3] Introduce supported interfaces bitmap patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.