diff mbox series

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

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

Commit Message

Shravan Kumar Ramani June 21, 2022, 5:17 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.

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

Patch

diff --git a/drivers/platform/mellanox/mlx-trio.c b/drivers/platform/mellanox/mlx-trio.c
index 1fd1b7a35bc1..b040606505ac 100644
--- a/drivers/platform/mellanox/mlx-trio.c
+++ b/drivers/platform/mellanox/mlx-trio.c
@@ -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;