Skip to contentSkip to conversation

OK if tg3_get_eeprom_hw_cfg() reads SRAM?

DISCUSSION Grant Grundler 1 participant 1 message Aug 18, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Michael,
tg3_get_eeprom_hw_cfg() was added in this patch:

	http://www.kernel.org/git/?p=linux/kernel/git/davem/net-2.6.git;a=commit;h=7d0c41ef89dad9008edf1c3c0022721ebad39999

The comment before tg3_get_eeprom_hw_cfg() suggests tg3 should ONLY be touching PCI cfg space until the NIC gets to D0 power state. But tg3_get_eeprom_hw_cfg() is called before tg3_set_power_state(tp,0).

Is it OK for tg3_get_eeprom_hw_cfg() to read NIC_SRAM_DATA_CFG?

thanks,
grant