@@ -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);
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(-)