]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: fix the access to management firmware hanging
authorGao Xiao <gao.xiao@corigine.com>
Mon, 29 Aug 2022 10:16:51 +0000 (12:16 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 31 Aug 2022 06:03:44 +0000 (23:03 -0700)
commit54851df54378f3fa65c9899db6177fd30275d2bd
treec27232a519802b4a4dcae35b4df11c2a6bf3dffc
parent9490ffde94accf3e64b105bdd0dce1420f3e53e9
nfp: fix the access to management firmware hanging

When running `ethtool -p` with the old management firmware,
the management firmware resource is not correctly released,
which causes firmware related malfunction: all the access
to management firmware hangs.

It releases the management firmware resource when set id
mode operation is not supported.

Fixes: 55b89e1e58d0 ("nfp: add 'ethtool --identify' support")
Signed-off-by: Gao Xiao <gao.xiao@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Link: https://lore.kernel.org/r/20220829101651.633840-1-simon.horman@corigine.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c