]> www.infradead.org Git - users/jedix/linux-maple.git/commit
8139cp/8139too: terminate the eeprom access with the right opmode
authorJason Wang <jasowang@redhat.com>
Thu, 31 May 2012 18:19:48 +0000 (18:19 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 29 Aug 2012 00:22:20 +0000 (08:22 +0800)
commitbd4f059c3187d0f58f98d11995c1c489f339a1be
tree198a4333251547da8c6c1fd0eb62e4dcd42d57e3
parent6c3b133cb299af78ef844f33817cd3a4f357c902
8139cp/8139too: terminate the eeprom access with the right opmode

Currently, we terminate the eeprom access through clearing the CS by:

RTL_W8 (Cfg9346, ~EE_CS); or writeb (~EE_CS, ee_addr);

This would left the eeprom into "Config. Register Write Enable:"
state which is not expcted as the highest two bits were set to
0x11 ( expected is the "Normal" mode (0x00)). Solving this by write
0x0 instead of ~EE_CS when terminating the eeprom access.

(cherry picked from commit 0bc777bca480357941418952cf228484f5485daf)
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/8139cp.c
drivers/net/8139too.c