remoteproc: mediatek: Refine ipi handler error message
authorTinghan Shen <tinghan.shen@mediatek.com>
Fri, 1 Sep 2023 08:09:34 +0000 (16:09 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 13 Sep 2023 17:46:31 +0000 (11:46 -0600)
The error message doesn't accurately reflect the cause of
the error. The error is due to a handler not being found,
not an invalid IPI ID.

Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230901080935.14571-14-tinghan.shen@mediatek.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/mtk_scp.c

index a28c9b017f3a4781f1cd39f2572a28458d7667d1..ea227b566c543534e85b0ac9ba58f6d0a4d40408 100644 (file)
@@ -112,7 +112,7 @@ static void scp_ipi_handler(struct mtk_scp *scp)
        scp_ipi_lock(scp, id);
        handler = ipi_desc[id].handler;
        if (!handler) {
-               dev_err(scp->dev, "No such ipi id = %d\n", id);
+               dev_err(scp->dev, "No handler for ipi id = %d\n", id);
                scp_ipi_unlock(scp, id);
                return;
        }