]> www.infradead.org Git - users/hch/configfs.git/commit
net: phy: aquantia: add support for PHY LEDs
authorDaniel Golle <daniel@makrotopia.org>
Fri, 31 May 2024 23:35:03 +0000 (01:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2024 09:21:31 +0000 (10:21 +0100)
commit61578f67937881abf54c8bd258eb913312dbe4c1
treec88558c8a6823f3e7f56d56f421c650816a1eed5
parentc11d5dbbe73fa7b450aaa77bb18df86a9714b422
net: phy: aquantia: add support for PHY LEDs

Aquantia Ethernet PHYs got 3 LED output pins which are typically used
to indicate link status and activity.
Add a minimal LED controller driver supporting the most common uses
with the 'netdev' trigger as well as software-driven forced control of
the LEDs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
[ rework indentation, fix checkpatch error and improve some functions ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/aquantia/Makefile
drivers/net/phy/aquantia/aquantia.h
drivers/net/phy/aquantia/aquantia_leds.c [new file with mode: 0644]
drivers/net/phy/aquantia/aquantia_main.c