]> 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)
committerJakub Kicinski <kuba@kernel.org>
Mon, 19 Sep 2022 21:11:48 +0000 (14:11 -0700)
commit182447b12144b7be9b63a273d27c5a11bd54960a
treec3d491f220f83b54809c0d18432f4afcb9fe4a23
parent96628951869c0dedf0377adca01c8675172d8639
mlxbf_gige: clear MDIO gateway lock after read

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>
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_mdio.c