]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5: Set cap for pci sync for fw update event
authorMoshe Shemesh <moshe@mellanox.com>
Wed, 7 Oct 2020 06:00:48 +0000 (09:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Oct 2020 19:06:52 +0000 (12:06 -0700)
Set capability to notify the firmware that this host driver is capable
of handling pci sync for firmware update events.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c

index 3bd32c05ae7127d729ed230bb84cc4fc48c34739..5dd23790e7ee256f894af99abc904d775d5d24a9 100644 (file)
@@ -548,6 +548,9 @@ static int handle_hca_cap(struct mlx5_core_dev *dev, void *set_ctx)
        if (MLX5_CAP_GEN_MAX(dev, dct))
                MLX5_SET(cmd_hca_cap, set_hca_cap, dct, 1);
 
+       if (MLX5_CAP_GEN_MAX(dev, pci_sync_for_fw_update_event))
+               MLX5_SET(cmd_hca_cap, set_hca_cap, pci_sync_for_fw_update_event, 1);
+
        if (MLX5_CAP_GEN_MAX(dev, num_vhca_ports))
                MLX5_SET(cmd_hca_cap,
                         set_hca_cap,