diff mbox

[net-next] Disable writting on reg config1 value is read-only

Message ID CAGg4U=F3u3pfOQ6zaeEmQxCE87ireKRLNkm4T-gp__Q7GbYaJA@mail.gmail.com
State Changes Requested, archived
Delegated to: David Miller
Headers show

Commit Message

Corcodel Marian July 8, 2015, 8:07 p.m. UTC
[net-next]resend Disable writting on reg config1 value is read-only
On rtl8101/8102 MEMMAP | IOMAP | VPD | PMEnable is enabled on default
and is read-only  and is not need to write on these.

2015-07-08 21:55 GMT+03:00 Marian Corcodel <corcodel.marian@gmail.com>:
> On rtl8101/8102 MEMMAP | IOMAP | VPD | PMEnable is enabled on default
> and is read-only  and is not need to write on these.
diff mbox

Patch

diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 1a55057..c285028 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -6417,7 +6417,7 @@  static void rtl_hw_start_8102e_2(struct rtl8169_private *tp)
 
 	rtl_tx_performance_tweak(pdev, 0x5 << MAX_READ_REQUEST_SHIFT);
 
-	RTL_W8(Config1, MEMMAP | IOMAP | VPD | PMEnable);
+	//RTL_W8(Config1, MEMMAP | IOMAP | VPD | PMEnable);
 	RTL_W8(Config3, RTL_R8(Config3) & ~Beacon_en);
 }