Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10336455rwp; Thu, 20 Jul 2023 19:43:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlEPkQDRbPbC9agDJ//mBmswGfoCjEfmweZXccwRnsg5mhSaFcLSG/WvJhDxvs9/P9UyL5PL X-Received: by 2002:a17:906:3185:b0:965:fb87:4215 with SMTP id 5-20020a170906318500b00965fb874215mr518721ejy.15.1689907431012; Thu, 20 Jul 2023 19:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689907431; cv=none; d=google.com; s=arc-20160816; b=BrxDc153XA6MISEoirlmDhY+gQ6Ymj5adfOsZ8t77VIWLWwfNOzSoTLSaJ1Lq3g9l9 npwpkfknX0J/whtwXYV6Os8rlbswIlI+RdRfcjkNBWi/7qa/c8apSVUEbHNC+4CguNQw UGNl0oMG9J5oActySGP69JFB3H9dj10XWoKmdEBHlXeKCAchKMgji/phOwEgqKEYvqCK fyBx33Q111iP5NWclgKsnCKkw/qE5/VUvEAqiOz2j0GHMeaJ4/9SdZiSKJNbqgZy3lXN N+QXFElsc6K0zv1uVGxut+T3b1UouraypDFW705vcdvxZjmKvkd+SWL2iJk8iiqaK3Q3 mV/g== 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=oGLyNnZHkQKJzdQWL3F5sD5WDsZNC4/1QM0HlBGFsG0=; fh=fiUFlTmdXAnPLHH0bIyIc4brKi/t2/OmtpRJQ8s00Ug=; b=WDtJSlT8+HXKkPa9EccpqhlF0krt4HQzLOsggboaF1FFoZFyQFzzs74kBXjw9+f1eM 1Ej3G6RoSw4tavaaxlPxuj+1lJEut8FiMGP9gqnJXVvWL/Bdb7DHuJLwB0CF06ySNdvV 0js+u0GU2v9xJy3mUfOfRNWRmewLJV5IRGiCinbTTlDR56HPtG1Yq11wRLOlsB0L9+pL UlJx0tum7xUtb+xyPzUZqoCn7LeSQ1/jqqJiCNotjw/BAysBsPGMOpnbTHsNu/BQNuXh 2XRdvD5kPtQwOAOJO1nMoC4zMSiswM09XEgXJKrMt4sBHjh6B17FtA9gUCcj5m/Qj2qe 3wRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=O1XcbrID; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rl19-20020a170907217300b00993b3881ed2si1465973ejb.686.2023.07.20.19.43.26; Thu, 20 Jul 2023 19:43:50 -0700 (PDT) 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=O1XcbrID; 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 S229861AbjGUCmO (ORCPT + 99 others); Thu, 20 Jul 2023 22:42:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbjGUCmF (ORCPT ); Thu, 20 Jul 2023 22:42:05 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08A6C268F; Thu, 20 Jul 2023 19:41:57 -0700 (PDT) X-UUID: 266f570e277011eeb20a276fd37b9834-20230721 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=oGLyNnZHkQKJzdQWL3F5sD5WDsZNC4/1QM0HlBGFsG0=; b=O1XcbrIDMtdjRDPjwSZainNepBKbQ3zGMWzTDdSiyUZqtQtmTDOkyMmdn2buCNLRkLuh87ljqoL/OET9xL1OrACkOdv9LLuXTA4/kABJhhf9yLGiqK6p/Oms51vzq3uiPrRsihDjJ41RjMsTGExS936gXfHMAngAZ3kqVJHnjcA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.28,REQID:af9dc78f-a28f-4691-aee1-1ea6ac5cd919,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.28,REQID:af9dc78f-a28f-4691-aee1-1ea6ac5cd919,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:176cd25,CLOUDID:7d8df44c-06c1-468b-847d-5b62d44dbb9b,B ulkID:230721104153AO5W8LUD,BulkQuantity:0,Recheck:0,SF:19|48|38|29|28|17,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SDM,TF_CID_SPAM_ASC,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD, TF_CID_SPAM_SNR X-UUID: 266f570e277011eeb20a276fd37b9834-20230721 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1279980660; Fri, 21 Jul 2023 10:41:52 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 21 Jul 2023 10:41:51 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 21 Jul 2023 10:41:51 +0800 From: Tinghan Shen To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Tinghan Shen CC: , , , , , Subject: [PATCH v15 12/13] remoteproc: mediatek: Refine ipi handler error message Date: Fri, 21 Jul 2023 10:41:31 +0800 Message-ID: <20230721024132.6548-13-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230721024132.6548-1-tinghan.shen@mediatek.com> References: <20230721024132.6548-1-tinghan.shen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED 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 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 9ed2e18e36ba..38fb85dd6fb6 100644 --- a/drivers/remoteproc/mtk_scp.c +++ b/drivers/remoteproc/mtk_scp.c @@ -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; } -- 2.18.0