projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7eff10
)
qlcnic: fix bios version check
author
Amit Kumar Salecha
<amit.salecha@qlogic.com>
Mon, 8 Mar 2010 00:14:49 +0000
(
00:14
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 8 Mar 2010 18:45:30 +0000
(10:45 -0800)
Bios sub version from unified fw image is calculated incorrect.
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_init.c
patch
|
blob
|
history
diff --git
a/drivers/net/qlcnic/qlcnic_init.c
b/drivers/net/qlcnic/qlcnic_init.c
index 21a6e9f3dac53aa1a094a27b0a5b4f2db4d57581..7c34e4e29b3f79e64d2e3ac8f926c7dc0b48b57e 100644
(file)
--- a/
drivers/net/qlcnic/qlcnic_init.c
+++ b/
drivers/net/qlcnic/qlcnic_init.c
@@
-847,7
+847,7
@@
qlcnic_get_bios_version(struct qlcnic_adapter *adapter)
bios_ver = cpu_to_le32(*((u32 *) (&fw->data[prd_off])
+ QLCNIC_UNI_BIOS_VERSION_OFF));
- return (bios_ver <<
24
) + ((bios_ver >> 8) & 0xff00) + (bios_ver >> 24);
+ return (bios_ver <<
16
) + ((bios_ver >> 8) & 0xff00) + (bios_ver >> 24);
}
int