[PATCH v2 1/2] UBUNTU: SAUCE: mlx-trio: Use pr_debug for TRIO IRQ prints
Shravan Kumar Ramani
shravankr at nvidia.com
Tue Jun 21 05:17:10 UTC 2022
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 at nvidia.com>
---
drivers/platform/mellanox/mlx-trio.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
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;
--
2.30.1
More information about the kernel-team
mailing list