]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net/mlx5: Remove PTM support log message
authorCarolina Jubran <cjubran@nvidia.com>
Thu, 19 Dec 2024 17:58:40 +0000 (19:58 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 18:34:46 +0000 (10:34 -0800)
The absence of Precision Time Measurement support should not emit a
message, as it can be misleading in contexts where PTM is not required.

Remove the log message indicating the lack of PCIe PTM support.

Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241219175841.1094544-11-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c

index 869bfecdd8ffa4ca651c711d13fa78c2aa3b9574..a108d8c726f82818d5fef7b5742570c967e4e83d 100644 (file)
@@ -945,9 +945,7 @@ static int mlx5_pci_init(struct mlx5_core_dev *dev, struct pci_dev *pdev,
 
        mlx5_pci_vsc_init(dev);
 
-       err = pci_enable_ptm(pdev, NULL);
-       if (err)
-               mlx5_core_info(dev, "PTM is not supported by PCIe\n");
+       pci_enable_ptm(pdev, NULL);
 
        return 0;