r8169:fix system hange problem.
PATCH 1/1 r8169:fix system hange problem.
There are typos in setting RTL8168H hardware parameters. If system install another version driver that may cuase system hang.
Signed-off-by Chunhao Lin <[email protected]>
--- drivers/net/ethernet/realtek/r8169.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/net/ethernet/realtek/r8169.c +7 -7
@@ -6137,28 +6137,28 @@ static void rtl_hw_start_8168h_1(struct rtl8169_private *tp) sw_cnt_1ms_ini =16000000 /rg_saw_cnt; sw_cnt_1ms_ini &=0x0fff ; data =r8168_mac_ocp_read (tp,0xd412 ); - data &=0x0fff ; + data &= ~0x0fff ; data |= sw_cnt_1ms_ini;r8168_mac_ocp_write (tp,0xd412 , data); } data =r8168_mac_ocp_read (tp,0xe056 ); - data &=0xf0 ; - data |=0x07 ; + data &= ~0xf0 ; + data |=0x70 ;r8168_mac_ocp_write (tp,0xe056 , data); data =r8168_mac_ocp_read (tp,0xe052 ); - data &=0x8008 ; - data |=0x6000 ; + data &= ~0x6000 ; + data |=0x8008 ;r8168_mac_ocp_write (tp,0xe052 , data); data =r8168_mac_ocp_read (tp,0xe0d6 ); - data &=0x01ff ; + data &= ~0x01ff ; data |=0x017f ;r8168_mac_ocp_write (tp,0xe0d6 , data); data =r8168_mac_ocp_read (tp,0xd420 ); - data &=0x0fff ; + data &= ~0x0fff ; data |=0x047f ;r8168_mac_ocp_write (tp,0xd420 , data);
Signature · 1 line
1.9.1
From: Chunhao Lin <[email protected]>
Date: Fri, 5 Feb 2016 02:28:00 +0800
Quoted 4 lines
There are typos in setting RTL8168H hardware parameters. If system install another version driver that may cuase system hang.
Signed-off-by Chunhao Lin <[email protected]>
Applied to 'net'.