[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260123-ledtrig_disk_-v1-0-07004756467b@posteo.de>
Date: Fri, 23 Jan 2026 19:05:03 +0000
From: Markus Probst <markus.probst@...teo.de>
To: Lee Jones <lee@...nel.org>, Pavel Machek <pavel@...nel.org>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Jacek Anaszewski <jacek.anaszewski@...il.com>,
Damien Le Moal <dlemoal@...nel.org>, Niklas Cassel <cassel@...nel.org>,
John Garry <john.g.garry@...cle.com>, Jason Yan <yanaijie@...wei.com>,
"James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>
Cc: Pavel Machek <pavel@....cz>, linux-leds@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-ide@...r.kernel.org, linux-scsi@...r.kernel.org,
Markus Probst <markus.probst@...teo.de>
Subject: [PATCH RFC 0/4] leds: extend disk trigger
Extend the disk trigger
- to allow configuration of the blinking delays
and whether the led should be kept on, on idle.
- to allow an individual led to be mapped to an ata port
I would also like to add another patch to this series, only leaving the led
on with invert 1 if also at least one disk is present on the ata port.
The led would then not only indicate activity, but also if a disk is
present.
That is why it is an RFC.
@Damien,Niclas: What would be the most straightforward way of telling
the led trigger if at least one disk is present on the ata port and
notifing it when this changes?
Thanks
- Markus Probst
Signed-off-by: Markus Probst <markus.probst@...teo.de>
---
Markus Probst (4):
leds: dt-bindings: add disk trigger led pattern
leds: dt-bindings: add disk trigger for each ata port
leds: add delay_on, delay_off and invert attributes to disk trigger
leds: add disk trigger for each ata port
Documentation/devicetree/bindings/leds/common.yaml | 10 +-
drivers/ata/libata-core.c | 22 +-
drivers/leds/trigger/ledtrig-disk.c | 298 ++++++++++++++++++++-
drivers/scsi/libsas/sas_ata.c | 3 +-
include/linux/leds.h | 16 +-
include/linux/libata.h | 6 +-
6 files changed, 332 insertions(+), 23 deletions(-)
---
base-commit: 24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7
change-id: 20260123-ledtrig_disk_-1a500531865a
Powered by blists - more mailing lists