aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_main.c
diff options
context:
space:
mode:
authorSony Chacko <sony.chacko@qlogic.com>2010-08-31 13:17:44 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-01 13:41:53 -0400
commit4e70812b3dc32c76fa2fa3aa2c8221eaac87cd6f (patch)
tree3fcbb778ec0d67bebcf27c3215625e6f6021ed05 /drivers/net/qlcnic/qlcnic_main.c
parent74af4c7df35e6811eb3c50e398abafa5b3cabb75 (diff)
qlcnic: backout firmware initialization update
o Backing out "firmware initialization update" changes, commit-id "d4066833bb1b35fefb1dd45eb2b10659d46bf151". o fix heartbit spelling, it should be heartbeat Signed-off-by: Sony Chacko <sony.chacko@qlogic.com> Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_main.c')
-rw-r--r--drivers/net/qlcnic/qlcnic_main.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c
index 6999d5aaa157..771a160b88c1 100644
--- a/drivers/net/qlcnic/qlcnic_main.c
+++ b/drivers/net/qlcnic/qlcnic_main.c
@@ -983,7 +983,7 @@ qlcnic_start_firmware(struct qlcnic_adapter *adapter)
983 983
984 err = qlcnic_need_fw_reset(adapter); 984 err = qlcnic_need_fw_reset(adapter);
985 if (err == 0) 985 if (err == 0)
986 goto set_dev_ready; 986 goto check_fw_status;
987 987
988 err = qlcnic_pinit_from_rom(adapter); 988 err = qlcnic_pinit_from_rom(adapter);
989 if (err) 989 if (err)
@@ -1002,7 +1002,6 @@ check_fw_status:
1002 if (err) 1002 if (err)
1003 goto err_out; 1003 goto err_out;
1004 1004
1005set_dev_ready:
1006 QLCWR32(adapter, QLCNIC_CRB_DEV_STATE, QLCNIC_DEV_READY); 1005 QLCWR32(adapter, QLCNIC_CRB_DEV_STATE, QLCNIC_DEV_READY);
1007 qlcnic_idc_debug_info(adapter, 1); 1006 qlcnic_idc_debug_info(adapter, 1);
1008 1007
@@ -2795,7 +2794,7 @@ done:
2795static int 2794static int
2796qlcnic_check_health(struct qlcnic_adapter *adapter) 2795qlcnic_check_health(struct qlcnic_adapter *adapter)
2797{ 2796{
2798 u32 state = 0, heartbit; 2797 u32 state = 0, heartbeat;
2799 struct net_device *netdev = adapter->netdev; 2798 struct net_device *netdev = adapter->netdev;
2800 2799
2801 if (qlcnic_check_temp(adapter)) 2800 if (qlcnic_check_temp(adapter))
@@ -2811,9 +2810,9 @@ qlcnic_check_health(struct qlcnic_adapter *adapter)
2811 adapter->need_fw_reset = 1; 2810 adapter->need_fw_reset = 1;
2812 } 2811 }
2813 2812
2814 heartbit = QLCRD32(adapter, QLCNIC_PEG_ALIVE_COUNTER); 2813 heartbeat = QLCRD32(adapter, QLCNIC_PEG_ALIVE_COUNTER);
2815 if (heartbit != adapter->heartbit) { 2814 if (heartbeat != adapter->heartbeat) {
2816 adapter->heartbit = heartbit; 2815 adapter->heartbeat = heartbeat;
2817 adapter->fw_fail_cnt = 0; 2816 adapter->fw_fail_cnt = 0;
2818 if (adapter->need_fw_reset) 2817 if (adapter->need_fw_reset)
2819 goto detach; 2818 goto detach;