r8169: more broken register writes workaround

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, April 28, 2010 - 1:59 pm

Gitweb:     http://git.kernel.org/linus/908ba2bfd22253f26fa910cd855e4ccffb1467d0
Commit:     908ba2bfd22253f26fa910cd855e4ccffb1467d0
Parent:     87aeec767e1de60d7f76abbb44df5372b0932b7b
Author:     françois romieu <romieu@fr.zoreil.com>
AuthorDate: Mon Apr 26 11:42:58 2010 +0000
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Mon Apr 26 15:36:48 2010 -0700

    r8169: more broken register writes workaround
    
    78f1cd02457252e1ffbc6caa44a17424a45286b8 ("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>
---
 drivers/net/r8169.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 2b54389..4748c21 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -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);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
r8169: more broken register writes workaround, Linux Kernel Mailing ..., (Wed Apr 28, 1:59 pm)