]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
cxgb4: Force uninitialized state if FW in adapter is unsupported
authorHariprasad Shenai <hariprasad@chelsio.com>
Fri, 28 Aug 2015 05:47:12 +0000 (11:17 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2015 20:49:07 +0000 (13:49 -0700)
commita69265e9f65a6747c27b01b4030ad85d71aa11ba
tree9dab2c7f7c449ff377c8a45d71fa5cdaac1d4723
parent8b72ca67fed39816b732b0cf53a1c7f2efc6400d
cxgb4: Force uninitialized state if FW in adapter is unsupported

Forcing uninitialized state allows us to upgrade and reinitialize
the adapter.

    FW_VERSION_T4 = 1.4.0.0
    FW_VERSION_T5 = 0.0.0.0
    FW_VERSION_T6 = 0.0.0.0
At this point driver supports above and greater than above version.

If FW in adapter < min FW_VERSION driver supports tries to upgrade the FW
If FW in adapter >= FW_VERSION driver supports then it follows normal path

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