Re: [PATCH net-next 5/5] igc: Export LEDs
From: Kurt Kanzenbach <kurt@linutronix.de>
Date: 2021-07-19 06:17:40
Attachments
- signature.asc [application/pgp-signature] 861 bytes
From: Kurt Kanzenbach <kurt@linutronix.de>
Date: 2021-07-19 06:17:40
On Mon Jul 19 2021, Andrew Lunn wrote:
quoted
Supposedly mode refers to a 4-bit bitfield in a LED control register where each value 0 .. 15 stands for a different blink mode. So you would need the datasheet to know which value to set.If the brightness is being abused to represent the blink mode, this patch is going to get my NACK. Unfortunately, i cannot find a datasheet for this chip to know what the LED control register actually does. So i'm waiting for a reply to my question. There is a broad agreement between the LED maintainers and the PHYLIB maintainers how Ethernet LEDs should be described with the hardware blinking the LED for different reasons. The LED trigger mechanisms should be used, one trigger per mode, and the trigger is then offloaded to the hardware.
OK. I'll look into it. Can you point me to an example maybe? Unfortunately this patch seems to be merged already. I guess it should be reverted. Thanks, Kurt