On 9/1/2020 5:50 AM, Kurt Kanzenbach wrote:
The switch has two controllable I/Os which are usually connected to LEDs. This is useful to immediately visually see the PTP status. These provide two signals: * is_gm This LED can be activated if the current device is the grand master in that PTP domain. * sync_good This LED can be activated if the current device is in sync with the network time. Expose these via the LED framework to be controlled via user space e.g. linuxptp. Signed-off-by: Kurt Kanzenbach <kurt@xxxxxxxxxxxxx> Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
There appears to be quite some boilerplate code to deal with the default trigger, default LED label that could presumably live in the LED subsystem, nonetheless:
Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx> -- Florian