Skip to contentSkip to conversation

- cxgb3 engine microcode load

PATCH In review Divy Le Ray 1 participant 1 message Aug 30, 2007

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

PATCH 2/2 - cxgb3 engine microcode load

From: Divy Le Ray <[email protected]>

Load the engine microcode when an interface is brought up, instead of of doing it when the module is loaded.
Loosen up tight binding between the driver and the engine microcode version.
There is no need for microcode update with T3A boards. Fix the file naming.
Do a better job at logging the loading activity.

---

 drivers/net/cxgb3/common.h     |    3 +
 drivers/net/cxgb3/cxgb3_main.c |  126 ++++++++++++++++++++++++++--------------
 drivers/net/cxgb3/t3_hw.c      |   46 +++++++++++++--
 3 files changed, 123 insertions(+), 52 deletions(-)
drivers/net/cxgb3/common.h +2 -1
index 1637800..2129210 100644
@@ -679,7 +679,8 @@ const struct adapter_info *t3_get_adapter_info(unsigned int board_id);
 int t3_seeprom_read(struct adapter *adapter, u32 addr, u32 *data);
 int t3_seeprom_write(struct adapter *adapter, u32 addr, u32 data);
 int t3_seeprom_wp(struct adapter *adapter, int enable);
-int t3_check_tpsram_version(struct adapter *adapter);
+int t3_get_tp_version(struct adapter *adapter, u32 *vers);
+int t3_check_tpsram_version(struct adapter *adapter, int *must_load);
 int t3_check_tpsram(struct adapter *adapter, u8 *tp_ram, unsigned int size);
 int t3_set_proto_sram(struct adapter *adap, u8 *data);
 int t3_read_flash(struct adapter *adapter, unsigned int addr,
drivers/net/cxgb3/cxgb3_main.c +81 -45

179 lines not on this page · raw message

drivers/net/cxgb3/t3_hw.c +40 -6

69 lines not on this page · raw message