mbox series

[net-next,v1,0/3] Support offload LED blinking to PHY.

Message ID 20230619215703.4038619-1-andrew@lunn.ch (mailing list archive)
Headers show
Series Support offload LED blinking to PHY. | expand

Message

Andrew Lunn June 19, 2023, 9:57 p.m. UTC
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 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                   |  18 ++
 4 files changed, 334 insertions(+), 3 deletions(-)