|
|
@@ -18,7 +18,7 @@ Signed-off-by: Álvaro Fernández Rojas <[email protected]>
|
|
|
|
|
|
--- a/src/r8126.h
|
|
|
+++ b/src/r8126.h
|
|
|
-@@ -1561,6 +1561,8 @@ enum RTL8126_register_content {
|
|
|
+@@ -1740,6 +1740,8 @@ enum RTL8126_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>
|
|
|
-@@ -4740,6 +4741,40 @@ rtl8126_link_down_patch(struct net_devic
|
|
|
+@@ -4744,6 +4745,40 @@ rtl8126_link_down_patch(struct net_devic
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
@@ -76,10 +76,10 @@ Signed-off-by: Álvaro Fernández Rojas <[email protected]>
|
|
|
+}
|
|
|
+
|
|
|
static void
|
|
|
- _rtl8126_check_link_status(struct net_device *dev)
|
|
|
+ _rtl8126_check_link_status(struct net_device *dev, unsigned int link_state)
|
|
|
{
|
|
|
-@@ -4748,11 +4783,18 @@ _rtl8126_check_link_status(struct net_de
|
|
|
- if (tp->link_ok(dev)) {
|
|
|
+@@ -4756,11 +4791,18 @@ _rtl8126_check_link_status(struct net_de
|
|
|
+ if (link_state == R8126_LINK_STATE_ON) {
|
|
|
rtl8126_link_on_patch(dev);
|
|
|
|
|
|
- if (netif_msg_ifup(tp))
|