]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: support RTL8168G
authorHayes Wang <hayeswang@realtek.com>
Mon, 2 Jul 2012 09:23:22 +0000 (17:23 +0800)
committerFrancois Romieu <romieu@fr.zoreil.com>
Mon, 9 Jul 2012 21:38:23 +0000 (23:38 +0200)
commit047da2023a5b74216479b4921158f14f3a719fca
treed3f5a74c1334290932e4c2d63be51558743cc68f
parent6f8e13a498dc7d5dcfb9f1b1589292fd49279db9
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.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
drivers/net/ethernet/realtek/r8169.c