]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-pf: Wait till detach_resources msg is complete
authorSubbaraya Sundeep <sbhatta@marvell.com>
Mon, 18 Mar 2024 09:29:55 +0000 (14:59 +0530)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:20:12 +0000 (18:20 -0400)
commit1a2ce88ab3a953f0bb8551158bdcb0d1e115ab51
tree2e9ba9711b1ade162128d5098a3ec60cd78cf0af
parentc6354b85fa7c9d537ddfca52e7ee35e0d1aae294
octeontx2-pf: Wait till detach_resources msg is complete

[ Upstream commit cbf2f24939a5dafce6de4dd4422e543ce8f610cf ]

During VF driver remove, a message is sent to detach VF
resources to PF but VF is not waiting until message is
complete. Also mailbox interrupts need to be turned off
after the detach resource message is complete. This patch
fixes that problem.

Fixes: 05fcc9e08955 ("octeontx2-pf: Attach NIX and NPA block LFs")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c