OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc4de04
)
r8169: re-establish support for RTL8401 chip version
author
Heiner Kallweit
<hkallweit1@gmail.com>
Fri, 8 May 2020 06:24:14 +0000
(08:24 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Sat, 9 May 2020 01:32:12 +0000
(18:32 -0700)
r8169 never had native support for the RTL8401, however it reportedly
worked with the fallback to RTL8101e [0]. Therefore let's add this
as an explicit assignment.
[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956868
Fixes:
b4cc2dcc9c7c
("r8169: remove default chip versions")
Reported-by: CamaleĆ³n <noelamac@gmail.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/realtek/r8169_main.c
b/drivers/net/ethernet/realtek/r8169_main.c
index
bf5bf05
..
78e15cc
100644
(file)
--- a/
drivers/net/ethernet/realtek/r8169_main.c
+++ b/
drivers/net/ethernet/realtek/r8169_main.c
@@
-2127,6
+2127,8
@@
static enum mac_version rtl8169_get_mac_version(u16 xid, bool gmii)
{ 0x7cf, 0x348, RTL_GIGA_MAC_VER_07 },
{ 0x7cf, 0x248, RTL_GIGA_MAC_VER_07 },
{ 0x7cf, 0x340, RTL_GIGA_MAC_VER_13 },
+ /* RTL8401, reportedly works if treated as RTL8101e */
+ { 0x7cf, 0x240, RTL_GIGA_MAC_VER_13 },
{ 0x7cf, 0x343, RTL_GIGA_MAC_VER_10 },
{ 0x7cf, 0x342, RTL_GIGA_MAC_VER_16 },
{ 0x7c8, 0x348, RTL_GIGA_MAC_VER_09 },