diff mbox series

[v1,1/1] UBUNTU: SAUCE: mlx-trio: Use pr_debug for TRIO IRQ prints

Message ID 3f4483af5c7b88380d7f42586bc80cb5244b3df1.1655459262.git.shravankr@nvidia.com
State New
Headers show
Series Updates to mlx-trio | expand

Commit Message

Shravan Kumar Ramani June 17, 2022, 9:58 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1979045

TRIO IRQs are triggered during mlxfwreset and the prints from
the handler are misleading in such instances.
So replace the dev_err calls with pr_debug.
Also upate the license info.

Signed-off-by: Shravan Kumar Ramani <shravankr@nvidia.com>
---
 drivers/platform/mellanox/mlx-trio.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/drivers/platform/mellanox/mlx-trio.c b/drivers/platform/mellanox/mlx-trio.c
index 1fd1b7a35bc1..d6c255e13298 100644
--- a/drivers/platform/mellanox/mlx-trio.c
+++ b/drivers/platform/mellanox/mlx-trio.c
@@ -1,4 +1,4 @@ 
-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause
 /*
  * TRIO driver for Mellanox BlueField SoC
  *
@@ -302,8 +302,7 @@  static irqreturn_t trio_irq_handler(int irq, void *arg)
 	struct event_context *ctx = (struct event_context *)arg;
 	struct trio_context *trio = ctx->trio;
 
-	dev_err_ratelimited(&trio->pdev->dev,
-		"mlx_trio: TRIO %d received IRQ %d event %d (%s)\n",
+	pr_debug("mlx_trio: TRIO %d received IRQ %d event %d (%s)\n",
 		trio->trio_index, irq, ctx->event_num,
 		trio_events[ctx->event_num].name);
 
@@ -312,8 +311,7 @@  static irqreturn_t trio_irq_handler(int irq, void *arg)
 		trio_readq(trio, trio->mmio_base +
 				trio_events[ctx->event_num].additional_info,
 				&info);
-		dev_err_ratelimited(&trio->pdev->dev,
-			"mlx_trio: Addition IRQ info: %llx\n", info);
+		pr_debug("mlx_trio: Addition IRQ info: %llx\n", info);
 	}
 
 	return IRQ_HANDLED;
@@ -649,5 +647,5 @@  module_exit(trio_exit);
 
 MODULE_DESCRIPTION(DRIVER_DESCRIPTION);
 MODULE_AUTHOR("Mellanox Technologies");
-MODULE_LICENSE("GPL");
+MODULE_LICENSE("Dual BSD/GPL");
 MODULE_VERSION(DRIVER_VERSION);