net/mlx5: Move iseg access helper routines close to mlx5_core driver
authorParav Pandit <parav@mellanox.com>
Fri, 15 May 2020 22:16:53 +0000 (15:16 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 18 May 2020 16:21:46 +0000 (09:21 -0700)
commit555af0c3fa0b632be73c241cc932129af4b70d27
tree667c4a4095b2a31f3d5b00e3e22752417812987a
parent356d411c26735bcc62718c4c9181014255dc302d
net/mlx5: Move iseg access helper routines close to mlx5_core driver

Only mlx5_core driver handles fw initialization check and command
interface revision check.
Hence move them inside the mlx5_core driver where it is used.
This avoid exposing these helpers to all mlx5 drivers.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/driver.h