]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit827e38d009f11e145265f74f742e77b853b041df
tree667c4a4095b2a31f3d5b00e3e22752417812987a
parentb84b04c1b59ef4418494e375942e08a7a8551a80
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