Skip to content

Commit

Permalink
r8169: fix r8168fp_adjust_ocp_cmd function
Browse files Browse the repository at this point in the history
The (0xBAF70000 & 0x00FFF000) << 6 should be (0xf70 << 18).

Fixes: 561535b ("r8169: fix OCP access on RTL8117")
Signed-off-by: Hayes Wang <[email protected]>
Acked-by: Heiner Kallweit <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
hayesorz authored and davem330 committed Mar 5, 2021
1 parent 0a7e0c3 commit abbf9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/realtek/r8169_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit abbf9a0

Please sign in to comment.