|
|
@@ -18,7 +18,7 @@ Signed-off-by: Álvaro Fernández Rojas <[email protected]>
|
|
|
|
|
|
--- a/src/r8125.h
|
|
|
+++ b/src/r8125.h
|
|
|
-@@ -1563,6 +1563,8 @@ enum RTL8125_register_content {
|
|
|
+@@ -1672,6 +1672,8 @@ enum RTL8125_register_content {
|
|
|
LinkStatus = 0x02,
|
|
|
FullDup = 0x01,
|
|
|
|
|
|
@@ -37,7 +37,7 @@ Signed-off-by: Álvaro Fernández Rojas <[email protected]>
|
|
|
#include <linux/netdevice.h>
|
|
|
#include <linux/etherdevice.h>
|
|
|
#include <linux/delay.h>
|
|
|
-@@ -5112,6 +5113,38 @@ rtl8125_link_down_patch(struct net_devic
|
|
|
+@@ -5116,6 +5117,38 @@ rtl8125_link_down_patch(struct net_devic
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
@@ -74,10 +74,10 @@ Signed-off-by: Álvaro Fernández Rojas <[email protected]>
|
|
|
+}
|
|
|
+
|
|
|
static void
|
|
|
- _rtl8125_check_link_status(struct net_device *dev)
|
|
|
+ _rtl8125_check_link_status(struct net_device *dev, unsigned int link_state)
|
|
|
{
|
|
|
-@@ -5120,11 +5153,18 @@ _rtl8125_check_link_status(struct net_de
|
|
|
- if (tp->link_ok(dev)) {
|
|
|
+@@ -5128,11 +5161,18 @@ _rtl8125_check_link_status(struct net_de
|
|
|
+ if (link_state == R8125_LINK_STATE_ON) {
|
|
|
rtl8125_link_on_patch(dev);
|
|
|
|
|
|
- if (netif_msg_ifup(tp))
|