lkml.org 
[lkml]   [2023]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[net-next PATCH v2 0/3] net: add define to describe link speed modes
Date
This is a simple series to add a way to describe link speed modes number.

An additional helper is added and the phy_speeds is better documented
and expanded to return just the modes number.

This is also needed in the upcoming changes in the netdev trigger for LEDs
where phy_speeds functions is used to declare a more compact array instead
of using a "big enough" approach.

Changes v2:
- Drop stupid enum-define hack
- Introduce helper function
- Document phy_speeds function
- Extent phy_speeds function

Christian Marangi (3):
net: phy: refactor and better document phy_speeds function
net: phy: add simple helper to return count of supported speeds
net: phy: led: dynamically allocate speed modes array

drivers/net/phy/phy-core.c | 50 +++++++++++++++++++++++++++---
drivers/net/phy/phy.c | 12 +++++++
drivers/net/phy/phy_led_triggers.c | 16 ++++++++--
3 files changed, 70 insertions(+), 8 deletions(-)

--
2.40.1


\
 
 \ /
  Last update: 2023-12-14 23:39    [W:0.069 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site