net: phy: dp83867: Add support for hardware blinking LEDs
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 4 Oct 2023 08:40:26 +0000 (10:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Oct 2023 10:38:19 +0000 (11:38 +0100)
commit1a4890878241dae30da081b03b77056d6b1df882
treeeccedd70dcaedae73c02ce9691a488e864f650fc
parent99474727d5d5b56f6d417ae6010d93407bbaaebb
net: phy: dp83867: Add support for hardware blinking LEDs

This implements the led_hw_* hooks to support hardware blinking LEDs on
the DP83867 phy. The driver supports all LED modes that have a
corresponding TRIGGER_NETDEV_* define. Error and collision do not have
a TRIGGER_NETDEV_* define, so these modes are currently not supported.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com> #TQMa8MxML/MBa8Mx
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c