mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

* wolfssl: fix Config.in typo Fix simple typo `/crytpo/crypto/` in a description string Signed-off-by: Tony Butler <spudz76@gmail.com> * r8101: Update to 1.038.02 Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> * r8152: Update to 2.16.3.20220914 Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> * r8168: Update to 8.051.02 Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> Signed-off-by: Tony Butler <spudz76@gmail.com> Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> Co-authored-by: Tony Butler <spudz76@gmail.com> Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
43 lines
1020 B
Diff
43 lines
1020 B
Diff
--- a/src/r8168_n.c
|
|
+++ b/src/r8168_n.c
|
|
@@ -47,6 +47,7 @@
|
|
#include <linux/etherdevice.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/mii.h>
|
|
+#include <linux/of.h>
|
|
#include <linux/if_vlan.h>
|
|
#include <linux/crc32.h>
|
|
#include <linux/interrupt.h>
|
|
@@ -24769,6 +24770,22 @@ rtl8168_set_bios_setting(struct net_devi
|
|
}
|
|
}
|
|
|
|
+static int rtl8168_led_configuration(struct rtl8168_private *tp)
|
|
+{
|
|
+ u32 led_data;
|
|
+ int ret;
|
|
+
|
|
+ ret = of_property_read_u32(tp->pci_dev->dev.of_node,
|
|
+ "realtek,led-data", &led_data);
|
|
+
|
|
+ if (ret)
|
|
+ return ret;
|
|
+
|
|
+ RTL_W16(tp, CustomLED, led_data);
|
|
+
|
|
+ return 0;
|
|
+}
|
|
+
|
|
static void
|
|
rtl8168_init_software_variable(struct net_device *dev)
|
|
{
|
|
@@ -25343,6 +25360,8 @@ rtl8168_init_software_variable(struct ne
|
|
tp->NotWrMcuPatchCode = TRUE;
|
|
}
|
|
|
|
+ rtl8168_led_configuration(tp);
|
|
+
|
|
tp->NicCustLedValue = RTL_R16(tp, CustomLED);
|
|
|
|
rtl8168_get_hw_wol(dev);
|