]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix access to a non-supported register
authorAya Levin <ayal@nvidia.com>
Sun, 7 Nov 2021 15:21:45 +0000 (17:21 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 1 Dec 2021 06:35:06 +0000 (22:35 -0800)
commit6bdad87a60032d2ae695db7eb2827869e38d0948
treeb15cc686551f1224d3244944f2af5149dabc49c6
parentf6b1f13aaad6f535389554c9f64c0a90fa8034ec
net/mlx5: Fix access to a non-supported register

Validate MRTC register is supported before triggering a delayed work
which accesses it.

Fixes: 61842d1f387d ("net/mlx5: Add periodic update of host time to firmware")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/health.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/mlx5_ifc.h