r8169:Update the way of reading RTL8168H PHY register "rg_saw_cnt"
authorChun-Hao Lin <hau@realtek.com>
Thu, 24 Dec 2015 13:15:27 +0000 (21:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Dec 2015 05:19:38 +0000 (00:19 -0500)
commit584933334b7a81f09637f28cbee759a1e24428db
tree9fb1545b49115ef5129c3ee40ace584bc6239491
parente2e2788e4e96af1383a411335c5686a4b8c82496
r8169:Update the way of reading RTL8168H PHY register "rg_saw_cnt"

The vlaue of RTL8168H PHY register "rg_saw_cnt" only valid from bit0 to bit13.
When read this register, add bitwise-anding its value with 0x3fff.

Signed-off-by: Chunhao Lin <hau@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c