mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
35 lines
903 B
Diff
35 lines
903 B
Diff
--- a/src/r8125_n.c
|
|
+++ b/src/r8125_n.c
|
|
@@ -14820,6 +14820,23 @@ rtl8125_setup_mqs_reg(struct rtl8125_pri
|
|
}
|
|
|
|
static int
|
|
+rtl8125_devname_configuration(struct rtl8125_private *tp)
|
|
+{
|
|
+ const char *devname;
|
|
+ int ret;
|
|
+
|
|
+ ret = of_property_read_string(tp->pci_dev->dev.of_node,
|
|
+ "label", &devname);
|
|
+
|
|
+ if (ret)
|
|
+ return ret;
|
|
+
|
|
+ strlcpy(tp->dev->name, devname, IFNAMSIZ);
|
|
+
|
|
+ return 0;
|
|
+}
|
|
+
|
|
+static int
|
|
rtl8125_led_configuration(struct rtl8125_private *tp)
|
|
{
|
|
u32 led_data;
|
|
@@ -15402,6 +15419,7 @@ rtl8125_init_software_variable(struct ne
|
|
if (tp->InitRxDescType == RX_DESC_RING_TYPE_3)
|
|
tp->rtl8125_rx_config |= EnableRxDescV3;
|
|
|
|
+ rtl8125_devname_configuration(tp);
|
|
rtl8125_led_configuration(tp);
|
|
|
|
tp->NicCustLedValue = RTL_R16(tp, CustomLED);
|