netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v4 0/4] net: phy: mscc: Add support for PHY LED control
@ 2025-11-12 13:57 Prabhakar
  2025-11-12 13:57 ` [PATCH net-next v4 1/4] net: phy: mscc: Simplify LED mode update using phy_modify() Prabhakar
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Prabhakar @ 2025-11-12 13:57 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, Russell King, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Horatiu Vultur,
	Geert Uytterhoeven, Vladimir Oltean, Vadim Fedorenko,
	Parthiban.Veerasooran
  Cc: netdev, linux-kernel, linux-renesas-soc, Prabhakar, Biju Das,
	Fabrizio Castro, Lad Prabhakar

From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Hi All,

This patch series adds support for controlling the PHY LEDs on the
VSC85xx family of PHYs from Microsemi (now part of Renesas).
The first two patches simplify and consolidate existing probe code
the third patch introduces the LED control functionality.
The LED control feature allows users to configure the LED behavior
based on link activity, speed, and other criteria.

v3->v4:
- Sorted the members of vsc85xx_probe_config struct to avoid the
  holes
- Fixed Reverse Christmas tree in vsc85xx_led_combine_disable_set()
- Added Reviewed-by tag
- Added new patch 4/4 to handle devm_phy_package_join()
  failure in vsc85xx_probe_common()

v2->v3:
- Added Reviewed-by tag to patches 1/3 and 3/3.
- Grouped check_rate_magic check in patch 2/3.
- Formatted the patches with `--diff-algorithm=patience` option to
  improve readability.

v1->v2:
- Patches 1/3 and 2/3 are new.
- Added LED control support to all VSC85xx PHY variants.
- Renamed led callbacks to vsc85xx_* for consistency.
- Defaulted the LEDs on probe to the default array before parsing DT.
- Used phy_modify() in vsc85xx_led_brightness_set()
- Return value of phy_read() checked in vsc85xx_led_hw_control_get()
- Reverse Christmas tree in vsc85xx_led_hw_is_supported()
- Updated the commit message to clarify the LED combine feature behavior.

Cheers,
Prabhakar

Lad Prabhakar (4):
  net: phy: mscc: Simplify LED mode update using phy_modify()
  net: phy: mscc: Consolidate probe functions into a common helper
  net: phy: mscc: Add support for PHY LED control
  net: phy: mscc: Handle devm_phy_package_join() failure in
    vsc85xx_probe_common()

 drivers/net/phy/mscc/mscc.h      |   4 +
 drivers/net/phy/mscc/mscc_main.c | 497 +++++++++++++++++++++++--------
 2 files changed, 379 insertions(+), 122 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-11-14  2:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-12 13:57 [PATCH net-next v4 0/4] net: phy: mscc: Add support for PHY LED control Prabhakar
2025-11-12 13:57 ` [PATCH net-next v4 1/4] net: phy: mscc: Simplify LED mode update using phy_modify() Prabhakar
2025-11-12 17:38   ` Russell King (Oracle)
2025-11-12 13:57 ` [PATCH net-next v4 2/4] net: phy: mscc: Consolidate probe functions into a common helper Prabhakar
2025-11-12 13:57 ` [PATCH net-next v4 3/4] net: phy: mscc: Add support for PHY LED control Prabhakar
2025-11-12 13:57 ` [PATCH net-next v4 4/4] net: phy: mscc: Handle devm_phy_package_join() failure in vsc85xx_probe_common() Prabhakar
2025-11-13 13:06   ` Andrew Lunn
2025-11-14  2:00 ` [PATCH net-next v4 0/4] net: phy: mscc: Add support for PHY LED control patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).