r8152: Update to 2.19.2

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 778e34c00f)
This commit is contained in:
Tianling Shen 2024-11-05 16:00:32 +08:00
parent 66932c6cef
commit 273a55ff55
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 10 additions and 10 deletions

View File

@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=r8152
PKG_VERSION:=2.18.1.20240701
PKG_VERSION:=2.19.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/wget/realtek-r8152-linux/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=fe6fa8ccd849a8c2d4cb9325bed4bc0cdf773cfc8d2d950589e792d2ac507947
PKG_HASH:=03f9a558ebf90d7cd121150f942395be4b96a5d11059fd0d0517db2574731189
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/realtek-$(PKG_NAME)-linux-$(PKG_VERSION)
PKG_LICENSE:=GPL-2.0-only
@ -26,7 +26,7 @@ define KernelPackage/usb-net-rtl8152-vendor
SUBMENU:=USB Support
DEPENDS:=+kmod-usb-net
CONFLICTS:=kmod-usb-net-rtl8152
FILES:= $(PKG_BUILD_DIR)/r8152.ko
FILES:=$(PKG_BUILD_DIR)/r8152.ko
AUTOLOAD:=$(call AutoProbe,r8152)
endef

View File

@ -14,15 +14,15 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
--- a/r8152.c
+++ b/r8152.c
@@ -18,6 +18,7 @@
#include <linux/mii.h>
@@ -19,6 +19,7 @@
#include <linux/ethtool.h>
#include <linux/phy.h>
#include <linux/usb.h>
+#include <linux/of.h>
#include <linux/crc32.h>
#include <linux/if_vlan.h>
#include <linux/uaccess.h>
@@ -12599,6 +12600,22 @@ out:
@@ -12645,6 +12646,22 @@ out:
return ret;
}
@ -45,7 +45,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
static int r8152b_init(struct r8152 *tp)
{
int ret;
@@ -12698,6 +12715,8 @@ static int r8152b_init(struct r8152 *tp)
@@ -12744,6 +12761,8 @@ static int r8152b_init(struct r8152 *tp)
ret = ocp_word_clr_bits(tp, MCU_TYPE_USB, USB_USB_CTRL,
RX_AGG_DISABLE | RX_ZERO_EN);
@ -54,7 +54,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
out:
return (ret < 0) ? ret : 0;
}
@@ -12886,6 +12905,8 @@ static int r8153_init(struct r8152 *tp)
@@ -12932,6 +12951,8 @@ static int r8153_init(struct r8152 *tp)
break;
}
@ -63,7 +63,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
out:
return (ret < 0) ? ret : 0;
}
@@ -13016,6 +13037,8 @@ static int r8153b_init(struct r8152 *tp)
@@ -13062,6 +13083,8 @@ static int r8153b_init(struct r8152 *tp)
tp->coalesce = 15000; /* 15 us */
@ -72,7 +72,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
out:
return (ret < 0) ? ret : 0;
}
@@ -13127,6 +13150,8 @@ static int r8153c_init(struct r8152 *tp)
@@ -13176,6 +13199,8 @@ static int r8153c_init(struct r8152 *tp)
tp->coalesce = 15000; /* 15 us */