net/mlx5: Read embedded cpu after init bit cleared
authorMoshe Shemesh <moshe@nvidia.com>
Fri, 28 Apr 2023 10:48:13 +0000 (13:48 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 1 Jun 2023 03:08:37 +0000 (20:08 -0700)
commitbbfa4b58997e3d38ba629c9f6fc0bd1c163aaf43
tree1fcf0389660c0250190ca0a670c1736f40c8502a
parentb6193d7030e3c59f1d4c75648c9c8fa40cad2bcd
net/mlx5: Read embedded cpu after init bit cleared

During driver load it reads embedded_cpu bit from initialization
segment, but the initialization segment is readable only after
initialization bit is cleared.

Move the call to mlx5_read_embedded_cpu() right after initialization bit
cleared.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Fixes: 591905ba9679 ("net/mlx5: Introduce Mellanox SmartNIC and modify page management logic")
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c