Commit 09e65335 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller

r8169: add constant EnAnaPLL

Use constant EnAnaPLL for bit 14 as in vendor driver. The vendor
driver sets this bit for chip version 02 only, but I'm not aware of
any issues, so better leave it as it is.
In addition remove the useless debug message.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ac9c41d5
...@@ -492,6 +492,7 @@ enum rtl_register_content { ...@@ -492,6 +492,7 @@ enum rtl_register_content {
/* CPlusCmd p.31 */ /* CPlusCmd p.31 */
EnableBist = (1 << 15), // 8168 8101 EnableBist = (1 << 15), // 8168 8101
Mac_dbgo_oe = (1 << 14), // 8168 8101 Mac_dbgo_oe = (1 << 14), // 8168 8101
EnAnaPLL = (1 << 14), // 8169
Normal_mode = (1 << 13), // unused Normal_mode = (1 << 13), // unused
Force_half_dup = (1 << 12), // 8168 8101 Force_half_dup = (1 << 12), // 8168 8101
Force_rxflow_en = (1 << 11), // 8168 8101 Force_rxflow_en = (1 << 11), // 8168 8101
...@@ -5212,11 +5213,8 @@ static void rtl_hw_start_8169(struct rtl8169_private *tp) ...@@ -5212,11 +5213,8 @@ static void rtl_hw_start_8169(struct rtl8169_private *tp)
tp->cp_cmd |= PCIMulRW; tp->cp_cmd |= PCIMulRW;
if (tp->mac_version == RTL_GIGA_MAC_VER_02 || if (tp->mac_version == RTL_GIGA_MAC_VER_02 ||
tp->mac_version == RTL_GIGA_MAC_VER_03) { tp->mac_version == RTL_GIGA_MAC_VER_03)
netif_dbg(tp, drv, tp->dev, tp->cp_cmd |= EnAnaPLL;
"Set MAC Reg C+CR Offset 0xe0. Bit 3 and Bit 14 MUST be 1\n");
tp->cp_cmd |= (1 << 14);
}
RTL_W16(tp, CPlusCmd, tp->cp_cmd); RTL_W16(tp, CPlusCmd, tp->cp_cmd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment