mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
ea2ff25d4c
Backport a bunch of upstream r8169 patches: - RTL8168/RTL8101 LEDs support. - RTL8126A support. - RTL8125/RTL8126 LEDs support. - RTL8168M support. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 39f59c72ad3a1eaab9a60f0671bc94d2bc826d21 Mon Sep 17 00:00:00 2001
|
|
From: Heiner Kallweit <hkallweit1@gmail.com>
|
|
Date: Sun, 7 Apr 2024 23:19:25 +0200
|
|
Subject: [PATCH] r8169: add support for RTL8168M
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
A user reported an unknown chip version. According to the r8168 vendor
|
|
driver it's called RTL8168M, but handling is identical to RTL8168H.
|
|
So let's simply treat it as RTL8168H.
|
|
|
|
Tested-by: Евгений <octobergun@gmail.com>
|
|
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
---
|
|
drivers/net/ethernet/realtek/r8169_main.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/drivers/net/ethernet/realtek/r8169_main.c
|
|
+++ b/drivers/net/ethernet/realtek/r8169_main.c
|
|
@@ -2212,6 +2212,8 @@ static enum mac_version rtl8169_get_mac_
|
|
* the wild. Let's disable detection.
|
|
* { 0x7cf, 0x540, RTL_GIGA_MAC_VER_45 },
|
|
*/
|
|
+ /* Realtek calls it RTL8168M, but it's handled like RTL8168H */
|
|
+ { 0x7cf, 0x6c0, RTL_GIGA_MAC_VER_46 },
|
|
|
|
/* 8168G family. */
|
|
{ 0x7cf, 0x5c8, RTL_GIGA_MAC_VER_44 },
|