Skip to content

Commit

Permalink
r8169: more broken register writes workaround
Browse files Browse the repository at this point in the history
78f1cd0 ("fix broken register writes")
does not work for Al Viro's r8169 (XID 18000000).

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
françois romieu authored and David S. Miller committed Apr 26, 2010
1 parent 87aeec7 commit 908ba2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -2826,8 +2826,13 @@ static void rtl_rar_set(struct rtl8169_private *tp, u8 *addr)
spin_lock_irq(&tp->lock);

RTL_W8(Cfg9346, Cfg9346_Unlock);

RTL_W32(MAC4, high);
RTL_R32(MAC4);

RTL_W32(MAC0, low);
RTL_R32(MAC0);

RTL_W8(Cfg9346, Cfg9346_Lock);

spin_unlock_irq(&tp->lock);
Expand Down

0 comments on commit 908ba2b

Please sign in to comment.