|
@@ -1639,6 +1639,12 @@ static int bnx2x_nvram_write(struct bnx2x *bp, u32 offset, u8 *data_buf,
|
|
|
|
|
|
memcpy(&val, data_buf, 4);
|
|
|
|
|
|
+ /* Notice unlike bnx2x_nvram_read_dword() this will not
|
|
|
+ * change val using be32_to_cpu(), which causes data to flip
|
|
|
+ * if the eeprom is read and then written back. This is due
|
|
|
+ * to tools utilizing this functionality that would break
|
|
|
+ * if this would be resolved.
|
|
|
+ */
|
|
|
rc = bnx2x_nvram_write_dword(bp, offset, val, cmd_flags);
|
|
|
|
|
|
/* advance to the next dword */
|