Commit abbf9a0e authored by Hayes Wang's avatar Hayes Wang Committed by David S. Miller

r8169: fix r8168fp_adjust_ocp_cmd function

The (0xBAF70000 & 0x00FFF000) << 6 should be (0xf70 << 18).

Fixes: 561535b0 ("r8169: fix OCP access on RTL8117")
Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Acked-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0a7e0c3b
...@@ -767,7 +767,7 @@ static void r8168fp_adjust_ocp_cmd(struct rtl8169_private *tp, u32 *cmd, int typ ...@@ -767,7 +767,7 @@ static void r8168fp_adjust_ocp_cmd(struct rtl8169_private *tp, u32 *cmd, int typ
if (type == ERIAR_OOB && if (type == ERIAR_OOB &&
(tp->mac_version == RTL_GIGA_MAC_VER_52 || (tp->mac_version == RTL_GIGA_MAC_VER_52 ||
tp->mac_version == RTL_GIGA_MAC_VER_53)) tp->mac_version == RTL_GIGA_MAC_VER_53))
*cmd |= 0x7f0 << 18; *cmd |= 0xf70 << 18;
} }
DECLARE_RTL_COND(rtl_eriar_cond) DECLARE_RTL_COND(rtl_eriar_cond)
......
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