]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Enhance driver to update FW, when FW is too old
authorHariprasad Shenai <hariprasad@chelsio.com>
Thu, 8 Oct 2015 04:38:23 +0000 (10:08 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Oct 2015 11:57:58 +0000 (04:57 -0700)
commit8382f17b8826fd55c809c1abc897d3e718312270
tree0013a0032863a94a9957f3f3adcf6936e0d268fe
parentfcf4800a5769c54ad994e65c4a313d33230daac6
cxgb4: Enhance driver to update FW, when FW is too old

t4_check_fw_version() can return several error codes (-EINVAL, -EBUSY,
-EAGAIN). The present code sets the adapter state to UNINIT only if its
an EFAULT. In all the error cases set the adapter to uninitialized state.

In t4_check_fw_version() if call to t4_get_fw_version() fails, repeat the
operation a few times before returning failure.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c