|
|
Subscribe / Log in / New account

Support offload LED blinking to PHY.

From:  Andrew Lunn <andrew-AT-lunn.ch>
To:  netdev <netdev-AT-vger.kernel.org>
Subject:  [PATCH v2 net-next 0/3] Support offload LED blinking to PHY.
Date:  Sat, 24 Jun 2023 22:56:26 +0200
Message-ID:  <20230624205629.4158216-1-andrew@lunn.ch>
Cc:  Heiner Kallweit <hkallweit1-AT-gmail.com>, Russell King <rmk+kernel-AT-armlinux.org.uk>, Simon Horman <simon.horman-AT-corigine.com>, Christian Marangi <ansuelsmth-AT-gmail.com>, Andrew Lunn <andrew-AT-lunn.ch>
Archive-link:  Article


Allow offloading of the LED trigger netdev to PHY drivers and
implement it for the Marvell PHY driver. Additionally, correct the
handling of when the initial state of the LED cannot be represented by
the trigger, and so an error is returned.

Since v1:

Add true kerneldoc for the new entries in struct phy_driver
Add received Reviewed-by: tags

Since v0:

Make comments in struct phy_driver look more like kerneldoc
Add cover letter

Andrew Lunn (3):
  led: trig: netdev: Fix requesting offload device
  net: phy: phy_device: Call into the PHY driver to set LED offload
  net: phy: marvell: Add support for offloading LED blinking

 drivers/leds/trigger/ledtrig-netdev.c |   8 +-
 drivers/net/phy/marvell.c             | 243 ++++++++++++++++++++++++++
 drivers/net/phy/phy_device.c          |  68 +++++++
 include/linux/phy.h                   |  33 ++++
 4 files changed, 349 insertions(+), 3 deletions(-)

-- 
2.40.1




Copyright © 2023, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds