Merge tag 'for-linus-unmerged' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma...
[muen/linux.git] / drivers / net / ethernet / mellanox / mlx5 / core / fw.c
index 7006697..afd9f4f 100644 (file)
@@ -195,6 +195,12 @@ int mlx5_query_hca_caps(struct mlx5_core_dev *dev)
        if (MLX5_CAP_GEN(dev, qcam_reg))
                mlx5_get_qcam_reg(dev);
 
+       if (MLX5_CAP_GEN(dev, device_memory)) {
+               err = mlx5_core_get_caps(dev, MLX5_CAP_DEV_MEM);
+               if (err)
+                       return err;
+       }
+
        return 0;
 }