Re: [RFC PATCH 7/9] leds: trigger: Add led_trigger_notify_hw_control_changed() interface
From: Randy Dunlap
Date: Fri Feb 27 2026 - 16:01:20 EST
On 2/27/26 11:06 AM, Rong Zhang wrote:
> diff --git a/Documentation/leds/leds-class.rst b/Documentation/leds/leds-class.rst
> index cf7733e30bace..4d84db1067b43 100644
> --- a/Documentation/leds/leds-class.rst
> +++ b/Documentation/leds/leds-class.rst
> @@ -255,9 +255,72 @@ the end use hw_control_set to activate hw control.
> A trigger can use hw_control_get to check if a LED is already in hw control
> and init their flags.
>
> +Alternatively, a private trigger can be implemented along with the LED driver
> +if the hw control mode of the LED doesn't fit any generic trigger. To associate
> +the private trigger with the LED classdev, their `trigger_type` must be the same.
> +The name of the private trigger must be the same as `hw_control_trigger`. Since
> +both the LED classdev and the private trigger are in the same LED driver, it's not
> +necessary for them to coordinate via `hw_control_*` callbacks.
> +
> When the LED is in hw control, no software blink is possible and doing so
> will effectively disable hw control.
>
> +Hardware initiated hw control mode transition
> +==========================================
The heading underline line must be at least as long as the heading line,
so please add more ================ here.
thanks.
--
~Randy