r8169: add support for LED's on RTL8168/RTL8101
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 16 Dec 2023 19:58:10 +0000 (20:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2023 11:47:39 +0000 (11:47 +0000)
commit18764b883e157e28126b54e7d4ba9dd487d5bf54
treef51cb1f7c7f2ee669a7a2482a14bdb2dbe61dedf
parentd7a39d399a6dbc52dedde686e5dd40a3ae30f19f
r8169: add support for LED's on RTL8168/RTL8101

This adds support for the LED's on most chip versions. Excluded are
the old non-PCIe versions and RTL8125. RTL8125 has a different LED
register layout, support for it will follow later.

LED's can be controlled from userspace using the netdev LED trigger.

Tested on RTL8168h.

Note: The driver can't know which LED's are actually physically
wired. Therefore not every LED device may represent a physically
available LED.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/Makefile
drivers/net/ethernet/realtek/r8169.h
drivers/net/ethernet/realtek/r8169_leds.c [new file with mode: 0644]
drivers/net/ethernet/realtek/r8169_main.c