qlcnic: Fix driver load issue in FW hang
authorAnirban Chakraborty <anirban.chakraborty@qlogic.com>
Thu, 26 Aug 2010 14:02:52 +0000 (14:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Aug 2010 00:13:19 +0000 (17:13 -0700)
If there is a FW hang when the driver loads, it can not determine the FW operational
mode. Fix it by checking the FW state first before issuing any FW commands to
determine its capabilities and thereby detecting driver operational mode.

Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found