]> git.itanic.dy.fi Git - linux-stable/commit
mlxbf_gige: clear MDIO gateway lock after read
authorDavid Thompson <davthompson@nvidia.com>
Fri, 2 Sep 2022 16:42:47 +0000 (12:42 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:32:15 +0000 (11:32 +0200)
commit36da184d2196f9ebc68bf35f61eea5e2f6a475c4
treeebe38dfbbe3a6cb25a1d8b540dd77d8f5ec37e3b
parentc3f9f3089ed5517eb64bb01c8b05c005c46228aa
mlxbf_gige: clear MDIO gateway lock after read

[ Upstream commit 182447b12144b7be9b63a273d27c5a11bd54960a ]

The MDIO gateway (GW) lock in BlueField-2 GIGE logic is
set after read.  This patch adds logic to make sure the
lock is always cleared at the end of each MDIO transaction.

Fixes: f92e1869d74e ("Add Mellanox BlueField Gigabit Ethernet driver")
Reviewed-by: Asmaa Mnebhi <asmaa@nvidia.com>
Signed-off-by: David Thompson <davthompson@nvidia.com>
Link: https://lore.kernel.org/r/20220902164247.19862-1-davthompson@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_mdio.c