Skip to content

net: add define to describe link speed modes

Christian Marangi lkml netdev 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches7 repliesSuperseded

Changes in v4 from the cover letter

- Improve kdoc for functions (thanks Randy) Changes v3:
- Fix various compilation error (wrong revision pushed) Changes v2:
- Drop stupid enum-define hack
- Introduce helper function
- Document phy_speeds function
- Extent phy_speeds function

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: phy: refactor and better document phy_speeds functiondrivers/net/phy/phy-core.c+45 -50 replies
2/3net: phy: add simple helper to return count of supported speedsdrivers/net/phy/phy.c include/linux/phy.h+14 -00 replies
3/3net: phy: led: dynamically allocate speed modes arraydrivers/net/phy/phy_led_triggers.c+13 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [net-next PATCH v4 0/3] net: add define to describe link speed modes

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.
Documentation on the additional helper is not added to the phy.h as suggested from another patch where in double documentation define .c is preferred.

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 v4:
- Improve kdoc for functions (thanks Randy) Changes v3:
- Fix various compilation error (wrong revision pushed) 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 ++++++++--
 include/linux/phy.h                |  2 ++
 4 files changed, 72 insertions(+), 8 deletions(-)
Signature · 1 line
2.40.1