aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/realtek/8139cp.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2011-12-30 23:44:33 +0000
committerDavid S. Miller <davem@davemloft.net>2012-01-03 12:47:50 -0500
commit7d03f5a48e4d90854275b06433626243b3b3db17 (patch)
treea37d7f0cf1ccdb2336034def156e0e95558eeab3 /drivers/net/ethernet/realtek/8139cp.c
parent0e22d0437e6dea36c867b08ceb224c1cc98a45ab (diff)
downloadvexpress-lsk-7d03f5a48e4d90854275b06433626243b3b3db17.tar.gz
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>
Diffstat (limited to 'drivers/net/ethernet/realtek/8139cp.c')
-rw-r--r--drivers/net/ethernet/realtek/8139cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/8139cp.c b/drivers/net/ethernet/realtek/8139cp.c
index 87cff10f7be..886e6bec971 100644
--- a/drivers/net/ethernet/realtek/8139cp.c
+++ b/drivers/net/ethernet/realtek/8139cp.c
@@ -1589,7 +1589,7 @@ static int cp_set_mac_address(struct net_device *dev, void *p)
No extra delay is needed with 33Mhz PCI, but 66Mhz may change this.
*/
-#define eeprom_delay() readl(ee_addr)
+#define eeprom_delay() readb(ee_addr)
/* The EEPROM commands include the alway-set leading bit. */
#define EE_EXTEND_CMD (4)