]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[realtek] Force EEPROM CS low before disabling EEPROM access mode
authorMichael Brown <mcb30@ipxe.org>
Fri, 24 Aug 2012 15:44:29 +0000 (16:44 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 24 Aug 2012 16:26:11 +0000 (17:26 +0100)
commit70618161ad66cabee15a36554d72169e6b9ea3a9
tree24cbc8d8e458a0a76a9bacd5e36b6f16b97ee705
parentd1949f2737e44b1e0cdc6695ab867bc70002fcea
[realtek] Force EEPROM CS low before disabling EEPROM access mode

Some RTL8169 cards seem to drive the EEPROM CS line high (i.e. active)
when 9346CR.EEM is set to "normal operating mode", with the result
that the CS line is never deasserted.  The symptom of this is that the
first read from the EEPROM will work, while all subsequent reads will
return garbage data.

Reported-by: Thomas Miletich <thomas.miletich@gmail.com>
Debugged-by: Thomas Miletich <thomas.miletich@gmail.com>
Tested-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/realtek.c
src/drivers/net/realtek.h