summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/realtek/Makefile
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2023-12-16 20:58:10 +0100
committerDavid S. Miller <davem@davemloft.net>2023-12-20 12:47:39 +0100
commit18764b883e157e28126b54e7d4ba9dd487d5bf54 (patch)
treef51cb1f7c7f2ee669a7a2482a14bdb2dbe61dedf /drivers/net/ethernet/realtek/Makefile
parentMerge branch 'bridge-mdb-bulk-delete' (diff)
downloadlinux-18764b883e157e28126b54e7d4ba9dd487d5bf54.tar.xz
linux-18764b883e157e28126b54e7d4ba9dd487d5bf54.zip
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>
Diffstat (limited to 'drivers/net/ethernet/realtek/Makefile')
-rw-r--r--drivers/net/ethernet/realtek/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/realtek/Makefile b/drivers/net/ethernet/realtek/Makefile
index 2e1d78b106b0..adff9ebfbf2c 100644
--- a/drivers/net/ethernet/realtek/Makefile
+++ b/drivers/net/ethernet/realtek/Makefile
@@ -7,4 +7,7 @@ obj-$(CONFIG_8139CP) += 8139cp.o
obj-$(CONFIG_8139TOO) += 8139too.o
obj-$(CONFIG_ATP) += atp.o
r8169-objs += r8169_main.o r8169_firmware.o r8169_phy_config.o
+ifdef CONFIG_LEDS_TRIGGER_NETDEV
+r8169-objs += r8169_leds.o
+endif
obj-$(CONFIG_R8169) += r8169.o