|
@@ -18,7 +18,7 @@ Signed-off-by: Álvaro Fernández Rojas <[email protected]>
|
|
|
|
|
|
--- a/src/r8126.h
|
|
|
+++ b/src/r8126.h
|
|
|
-@@ -1756,6 +1756,10 @@ enum RTL8126_register_content {
|
|
|
+@@ -1752,6 +1752,10 @@ enum RTL8126_register_content {
|
|
|
LinkStatus = 0x02,
|
|
|
FullDup = 0x01,
|
|
|
|
|
@@ -39,8 +39,8 @@ Signed-off-by: Álvaro Fernández Rojas <[email protected]>
|
|
|
#include <linux/netdevice.h>
|
|
|
#include <linux/etherdevice.h>
|
|
|
#include <linux/delay.h>
|
|
|
-@@ -4661,6 +4662,40 @@ rtl8126_link_down_patch(struct net_devic
|
|
|
- #endif
|
|
|
+@@ -4410,6 +4411,40 @@ rtl8126_link_down_patch(struct net_devic
|
|
|
+ //rtl8126_set_speed(dev, tp->autoneg, tp->speed, tp->duplex, tp->advertising);
|
|
|
}
|
|
|
|
|
|
+static unsigned int rtl8126_phy_duplex(u32 status)
|
|
@@ -80,7 +80,7 @@ Signed-off-by: Álvaro Fernández Rojas <[email protected]>
|
|
|
static void
|
|
|
_rtl8126_check_link_status(struct net_device *dev, unsigned int link_state)
|
|
|
{
|
|
|
-@@ -4673,11 +4708,18 @@ _rtl8126_check_link_status(struct net_de
|
|
|
+@@ -4422,11 +4457,18 @@ _rtl8126_check_link_status(struct net_de
|
|
|
if (link_state == R8126_LINK_STATE_ON) {
|
|
|
rtl8126_link_on_patch(dev);
|
|
|
|