]> www.infradead.org Git - users/jedix/linux-maple.git/commit
r8169: support RTL8168G
authorJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 00:28:17 +0000 (08:28 +0800)
committerJoe Jin <joe.jin@oracle.com>
Wed, 29 Aug 2012 00:22:23 +0000 (08:22 +0800)
commitf495395680aae9a443f4143801b864750c3cbc9c
tree26ffcc8965bf3528f1ac7e5770f3815136a5376c
parentb17e9f938471cacbad2fb74978926a05e03e90c7
r8169: support RTL8168G

For RTL8111G, the settings of phy and firmware are replaced with
ocp functions. r8168g_mdio_{write / read} redirects the relative
settings to suitable ocp functions. A per-device variable is needed
to evaluate the real address of ocp functions.
rtl_writephy(tp, 0x1f, xxxx) is dedicated to keeping said variable
up-to-date.

(backported from upstream commit c558386b836ee97762e12495101c6e373f20e69d)
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/r8169.c