mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
r8169: fix r8168fp_adjust_ocp_cmd function
The (0xBAF70000 & 0x00FFF000) << 6 should be (0xf70 << 18).
Fixes: 561535b0f2
("r8169: fix OCP access on RTL8117")
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Acked-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0a7e0c3b57
commit
abbf9a0ef8
@ -767,7 +767,7 @@ static void r8168fp_adjust_ocp_cmd(struct rtl8169_private *tp, u32 *cmd, int typ
|
||||
if (type == ERIAR_OOB &&
|
||||
(tp->mac_version == RTL_GIGA_MAC_VER_52 ||
|
||||
tp->mac_version == RTL_GIGA_MAC_VER_53))
|
||||
*cmd |= 0x7f0 << 18;
|
||||
*cmd |= 0xf70 << 18;
|
||||
}
|
||||
|
||||
DECLARE_RTL_COND(rtl_eriar_cond)
|
||||
|
Loading…
Reference in New Issue
Block a user