| From: |
| Markus Probst <markus.probst-AT-posteo.de> |
| To: |
| Lee Jones <lee-AT-kernel.org>, Pavel Machek <pavel-AT-kernel.org>, Rob Herring <robh-AT-kernel.org>, Krzysztof Kozlowski <krzk+dt-AT-kernel.org>, Conor Dooley <conor+dt-AT-kernel.org>, Jacek Anaszewski <jacek.anaszewski-AT-gmail.com>, Damien Le Moal <dlemoal-AT-kernel.org>, Niklas Cassel <cassel-AT-kernel.org>, John Garry <john.g.garry-AT-oracle.com>, Jason Yan <yanaijie-AT-huawei.com>, "James E.J. Bottomley" <James.Bottomley-AT-HansenPartnership.com>, "Martin K. Petersen" <martin.petersen-AT-oracle.com> |
| Subject: |
| [PATCH RFC 0/4] leds: extend disk trigger |
| Date: |
| Fri, 23 Jan 2026 19:05:03 +0000 |
| Message-ID: |
| <20260123-ledtrig_disk_-v1-0-07004756467b@posteo.de> |
| Cc: |
| Pavel Machek <pavel-AT-ucw.cz>, linux-leds-AT-vger.kernel.org, devicetree-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, linux-ide-AT-vger.kernel.org, linux-scsi-AT-vger.kernel.org, Markus Probst <markus.probst-AT-posteo.de> |
| Archive-link: |
| Article |
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@posteo.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