Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214563
b: refs/heads/master
c: 97f29d8
h: refs/heads/master
i:
  214561: 2da78b0
  214559: ad271eb
v: v3
  • Loading branch information
Amit Kumar Salecha authored and David S. Miller committed Sep 17, 2010
1 parent 7766a06 commit 271d4dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aec1e8452dc364cffd0333e5632ec482f6322593
refs/heads/master: 97f29d8236aa3612986e7e7179282ff460eba686
30 changes: 2 additions & 28 deletions trunk/drivers/net/qlcnic/qlcnic_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,8 +1015,6 @@ qlcnic_check_fw_hearbeat(struct qlcnic_adapter *adapter)
int
qlcnic_need_fw_reset(struct qlcnic_adapter *adapter)
{
u32 val, version, major, minor, build;

if (qlcnic_check_fw_hearbeat(adapter)) {
qlcnic_rom_lock_recovery(adapter);
return 1;
Expand All @@ -1025,20 +1023,8 @@ qlcnic_need_fw_reset(struct qlcnic_adapter *adapter)
if (adapter->need_fw_reset)
return 1;

/* check if we have got newer or different file firmware */
if (adapter->fw) {

val = qlcnic_get_fw_version(adapter);

version = QLCNIC_DECODE_VERSION(val);

major = QLCRD32(adapter, QLCNIC_FW_VERSION_MAJOR);
minor = QLCRD32(adapter, QLCNIC_FW_VERSION_MINOR);
build = QLCRD32(adapter, QLCNIC_FW_VERSION_SUB);

if (version > QLCNIC_VERSION_CODE(major, minor, build))
return 1;
}
if (adapter->fw)
return 1;

return 0;
}
Expand Down Expand Up @@ -1174,18 +1160,6 @@ qlcnic_validate_firmware(struct qlcnic_adapter *adapter)
return -EINVAL;
}

/* check if flashed firmware is newer */
if (qlcnic_rom_fast_read(adapter,
QLCNIC_FW_VERSION_OFFSET, (int *)&val))
return -EIO;

val = QLCNIC_DECODE_VERSION(val);
if (val > ver) {
dev_info(&pdev->dev, "%s: firmware is older than flash\n",
fw_name[fw_type]);
return -EINVAL;
}

QLCWR32(adapter, QLCNIC_CAM_RAM(0x1fc), QLCNIC_BDINFO_MAGIC);
return 0;
}
Expand Down

0 comments on commit 271d4dc

Please sign in to comment.