From patchwork Wed Feb 15 04:12:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tinghan Shen X-Patchwork-Id: 57360 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3359252wrn; Tue, 14 Feb 2023 20:15:43 -0800 (PST) X-Google-Smtp-Source: AK7set+ADMbs9a6t1r0/0MhUKR06UfnT4z0zGmrThNiMbwOn6bSCrJ53ZBhR8YQ6DxW9wX7zf9pg X-Received: by 2002:a17:907:76d1:b0:8a0:7158:15dc with SMTP id kf17-20020a17090776d100b008a0715815dcmr766291ejc.74.1676434543039; Tue, 14 Feb 2023 20:15:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676434543; cv=none; d=google.com; s=arc-20160816; b=G4G+E5ZbIbzbPrAHDzL0OUROHEIOhGtAq/Fg9poSWhPuxzDiURYl1UEnDA05r49inw IUKqHu2xBtFaw7heN/CcqozO4Q1kWlNU5g4lDeRIe4Ea9HBlQYBybp73aepAjaeJDOBe EoCjUd62XJsIhYqGh8YpjW98MqRq8bUOoZ5k6Omlhoo4Obf8NdVA/Nz7yjMpVzNg7MSJ KrQ1qJ5VoYSRXVuce/ViAU1K7A+KbqpKprPomeYimEVJMQ2OEEV2CiUKqZD9dRWJcX2r lqERyDtHRNgfsEhI0CJr5O0ZPkv+9FHjxUgQ4cJe61jE1kbc6VfRCV4ZGckxyu1z/Dsn 7xSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=C1fFjgCUHa9OHSyRoUS8th94bKH2HepGCjPkyLCX+QA=; b=WIqnudeQk0aNYD3GKOWwTqb2Xo6BequErCuuu9V6Ow/txgBvRhGdjgXA9hMvKPtxao 4ERCkusHVNsMFK3whZrwQxrlEODlruHIE+ZIYHaBl2MJx3Sx3cylPvMpHj4IwG4NIMrf OA2jbM3SBUELpNjNQtvV/A+xwbMpOm+JQaQM04JEkvsugPlk5qUQdhMNztFMcW/U/jmP Feo0suln4Z8XmImd/TttgS7hluNBsZz2qFBP3KTyXDLSGj3DzytRcDljinAMR0O8xi2m LWVFRBx3/d2lEzYjfdvtwG8SzFKCoJyVfXuaKh5ciaD2WxfppQjfgrCcrnJVdaPHCXsR qccA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Rd0Ngr9p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id um28-20020a170907cb1c00b00888bda06814si17995393ejc.300.2023.02.14.20.15.18; Tue, 14 Feb 2023 20:15:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Rd0Ngr9p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232704AbjBOENv (ORCPT + 99 others); Tue, 14 Feb 2023 23:13:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbjBOENR (ORCPT ); Tue, 14 Feb 2023 23:13:17 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3098826877; Tue, 14 Feb 2023 20:13:08 -0800 (PST) X-UUID: 095f94e8ace711ed945fc101203acc17-20230215 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=C1fFjgCUHa9OHSyRoUS8th94bKH2HepGCjPkyLCX+QA=; b=Rd0Ngr9poes7+RdfaOWGNd2GAQAs7cJD91Xh9ewRXHGoX4dMlbtwpQRRg4rmjddIspAolKPTyILhBjNvnlmHC5rCj5r4Ad3IhcRBqrIZXzsKKHBAKur5+ZU4kYRnJWeVK0ikb8WxPDH6ecKwEVHaLbLNv3ZDmeQyfEFWuHPlr/U=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.19,REQID:ae72b7e6-4268-42cb-9a96-2f93d38ce3ac,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:885ddb2,CLOUDID:22749b25-564d-42d9-9875-7c868ee415ec,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-UUID: 095f94e8ace711ed945fc101203acc17-20230215 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1978570795; Wed, 15 Feb 2023 12:13:01 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Wed, 15 Feb 2023 12:12:59 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Wed, 15 Feb 2023 12:12:59 +0800 From: Tinghan Shen To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Tinghan Shen CC: , , , , , Subject: [PATCH v7 11/12] remoteproc: mediatek: Refine ipi handler error message Date: Wed, 15 Feb 2023 12:12:56 +0800 Message-ID: <20230215041257.14548-12-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230215041257.14548-1-tinghan.shen@mediatek.com> References: <20230215041257.14548-1-tinghan.shen@mediatek.com> MIME-Version: 1.0 X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757869026995575764?= X-GMAIL-MSGID: =?utf-8?q?1757869026995575764?= 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 Reviewed-by: AngeloGioacchino Del Regno --- drivers/remoteproc/mtk_scp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c index 6bc5f7f138d5..006493f4bb4c 100644 --- a/drivers/remoteproc/mtk_scp.c +++ b/drivers/remoteproc/mtk_scp.c @@ -113,7 +113,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; }