Re: [PATCH 2/2] r8169: checks against wrong mac addresse init

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ivan Vecera
Date: Tuesday, October 21, 2008 - 10:10 am

Martin Capitanio wrote:

1) According specification when EEM0 is set to 1 and EEM1 is set to 0
then adapter enters "auto load" mode. Entering this mode will make the
adapter load the contents of the 93C46 (93C56) as when the PCI RSTB
signal is asserted. This auto-load operation will take about 2 ms.
Upon completion, the it automatically returns to normal mode
(EEM1 = EEM0 = 0) and all of the other registers are reset to default
values.
2) First 2 bytes of the EEPROM contain ID code words for the adapter.
It will load the contents of the EEPROM into the corresponding location
if the ID word (0x8129) is correct.

So the Realtek's driver at first sets these bytes to value 0x8129 to ensure
that auto-load will be a success. Then it initiates auto-load (EMM0 = 1 and
EMM1 = 0) then wait some time and finally writes back original value (0x8128).

Ivan
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2] Pull request for 'r8169-fixes' branch, Francois Romieu, (Thu Oct 16, 2:45 pm)
[PATCH 1/2] r8169: verbose mac address init, Francois Romieu, (Thu Oct 16, 2:47 pm)
[PATCH 2/2] r8169: checks against wrong mac addresse init, Francois Romieu, (Thu Oct 16, 2:48 pm)
Re: [PATCH 2/2] r8169: checks against wrong mac addresse init, Martin Capitanio, (Fri Oct 17, 10:47 am)
Re: [PATCH 2/2] r8169: checks against wrong mac addresse init, Martin Capitanio, (Fri Oct 17, 4:52 pm)
Re: [PATCH 0/2] Pull request for 'r8169-fixes' branch, Jeff Garzik, (Mon Oct 20, 10:05 pm)
Re: [PATCH 2/2] r8169: checks against wrong mac addresse init, Ivan Vecera, (Tue Oct 21, 10:10 am)
Re: [PATCH 2/2] r8169: checks against wrong mac addresse init, Martin Capitanio, (Tue Oct 21, 2:55 pm)