qlcnic: fix beacon and LED test.
authorSucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Fri, 28 Oct 2011 12:57:15 +0000 (12:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Oct 2011 07:09:41 +0000 (03:09 -0400)
commit10ee0faed92c8af4baebd633372136a6608a41ea
treebd9390dfecf81ec40c2cdb12f97d4c7e7224132e
parent445b62dfd934394807c12aee06d3f20cf70c93b4
qlcnic: fix beacon and LED test.

o Updated version number to 5.0.25

o Do not hold onto RESETTING_BIT for entire duration of LED/ beacon test.
  Instead, just checking for RESETTING_BIT not set before sending config_led
  command down to card.

o Take rtnl_lock instead of RESETTING_BIT for beacon test while sending
  config_led command down to make sure interface cannot be brought up/ down.

o Allocate and free resources if interface is down before
  sending the config_led command. This is to make sure config_led
  command sending doesn't fail.

o Clear QLCNIC_LED_ENABLE bit if beacon/ LED test fails to start.

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c