8139cp/8139too: do not read into reserved registers
authorJason Wang <jasowang@redhat.com>
Fri, 30 Dec 2011 23:44:33 +0000 (23:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jan 2012 17:47:50 +0000 (12:47 -0500)
commit7d03f5a48e4d90854275b06433626243b3b3db17
treea37d7f0cf1ccdb2336034def156e0e95558eeab3
parent0e22d0437e6dea36c867b08ceb224c1cc98a45ab
8139cp/8139too: do not read into reserved registers

delay_eeprom() use long read for Cfg9346 register(offset 0x50) which may read
into the area of reserved register(offset 0x53). Use byte read instead.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/8139cp.c
drivers/net/ethernet/realtek/8139too.c