Re: [PATCH] leds: Don't emit brightness set error message if LED supports hw triggers only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01.11.2021 12:59, Pavel Machek wrote:
> Hi!
> 
> 
>> Working on a driver for specific network LEDs that support HW triggers
>> only I got error "Setting an LED's brightness failed" when switching
>> to a different trigger. This is caused by call
>> led_set_brightness(led_cdev, LED_OFF) in led_trigger_set() because
>> both brigthness_set callbacks are not implemented. Let's suppress
>> the error message in that case.
> 
> Hmm... do we have such LEDs in tree? LED supporting only hardware
> triggers is kind of unusual/interesting/and I'm not really sure if we
> should have them in LED subsystem.
> 
This was when working on network LED support for r8169 where you can
select between a number of HW triggers only. IIRC the discussion how
to support such network LEDs didn't really come to a conclusion yet.
Having said that at least my work hasn't been upstreamed yet.

> Best regards,
> 								Pavel
> 
Heiner



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux